Documentation
¶
Index ¶
- Constants
- Variables
- func Copy(ctx context.Context, w Writer, r Reader) error
- func DefaultField(f reflect.StructField) string
- func Del(ctx context.Context, w Writer, keys ...string) error
- func Get(ctx context.Context, r Reader, keys ...string) (any, error)
- func Set(ctx context.Context, w Writer, v any, keys ...string) (bool, error)
- func TGet[T any](ctx context.Context, r Reader, keys ...string) (T, error)
- type Error
- type Interface
- type Iter
- type Key
- type ListerTo
- type Map
- type Options
- type Prefixed
- type PrefixedReader
- type PrefixedWriter
- type Reader
- type SafeInterface
- type SafeReader
- type SafeWriter
- type Slice
- type Struct
- type Type
- type Writer
Constants ¶
View Source
const ( TypeMap = types.TypeMap TypeSlice = types.TypeSlice TypeStruct = types.TypeStruct )
Variables ¶
View Source
var ( ErrOutOfBounds = types.ErrOutOfBounds ErrEmpty = types.ErrEmpty ErrNotFound = types.ErrNotFound ErrNotDone = types.ErrNotDone ErrUnexpectedType = types.ErrUnexpectedType )
View Source
var DefaultOptions = &Options{ StructField: DefaultField, }
Functions ¶
func DefaultField ¶
func DefaultField(f reflect.StructField) string
Types ¶
type Options ¶
type Options struct {
StructField func(reflect.StructField) string
}
type PrefixedReader ¶
type PrefixedReader = types.PrefixedReader
type PrefixedWriter ¶
type PrefixedWriter = types.PrefixedWriter
type SafeInterface ¶
type SafeInterface = types.SafeInterface
type SafeReader ¶
type SafeReader = types.SafeReader
type SafeWriter ¶
type SafeWriter = types.SafeWriter
Source Files
¶
Click to show internal directories.
Click to hide internal directories.