util

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONDecEnc

func JSONDecEnc[T any](v any) (T, error)

func JSONMap

func JSONMap(v any) (map[string]any, error)

func JSONMapSlice

func JSONMapSlice(v any) ([]map[string]any, error)

Types

type SeqErr

type SeqErr[T any] interface {
	Seq() iter.Seq[T]
	Error() error
}

func SeqErrFunc

func SeqErrFunc[T any](fn func(yield func(T) bool) error) SeqErr[T]

type WriteSeekerBuffer

type WriteSeekerBuffer struct {
	// contains filtered or unexported fields
}

WriteSeekerBuffer is a buffer of bytes which satisfies io.WriteSeeker interface.

func (*WriteSeekerBuffer) Bytes

func (b *WriteSeekerBuffer) Bytes() []byte

func (*WriteSeekerBuffer) Seek

func (b *WriteSeekerBuffer) Seek(offset int64, whence int) (int64, error)

func (*WriteSeekerBuffer) Write

func (b *WriteSeekerBuffer) Write(p []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL