Documentation ¶
Index ¶
- func Walk(keys []string, current any, fn func(i int, v any) (bool, error)) error
- type Caster
- type Decrypter
- type Encrypter
- type Getter
- type Marshaller
- type Option
- func WithBinary() Option
- func WithDecrypt(d Decrypter) Option
- func WithEncrypt(e Encrypter) Option
- func WithInitData(data interface{}) Option
- func WithJSON() Option
- func WithMarshaller(m Marshaller) Option
- func WithReadOnly() Option
- func WithReferencePool(key string, ref *openurl.Pool[Values]) Option
- func WithSetCallback(f func([]string, interface{}) error) Option
- func WithStorer(data Storer) Option
- func WithString() Option
- func WithUnmarshaler(u Unmarshaler) Option
- func WithYAML() Option
- type Options
- type Ref
- type Scanner
- type Storer
- type Unmarshaler
- type Values
- type WalkOption
- type WalkOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Marshaller ¶
type Option ¶
type Option func(*Options)
func WithBinary ¶
func WithBinary() Option
func WithDecrypt ¶
func WithEncrypt ¶
func WithInitData ¶
func WithInitData(data interface{}) Option
func WithMarshaller ¶
func WithMarshaller(m Marshaller) Option
func WithReadOnly ¶
func WithReadOnly() Option
func WithSetCallback ¶
func WithStorer ¶
func WithString ¶
func WithString() Option
func WithUnmarshaler ¶
func WithUnmarshaler(u Unmarshaler) Option
type Options ¶
type Options struct { InitData interface{} Storer Unmarshaler Marshaller Encrypter Decrypter // Additional callback after Set is called SetCallback func([]string, interface{}) error // Do not create any resources ReadOnly bool ReferencePool map[string]*openurl.Pool[Values] // Used to pass other potential options Context context.Context }
type Unmarshaler ¶
type WalkOption ¶
type WalkOption func(*WalkOptions)
func WithInterceptor ¶
func WithInterceptor(f func(i int, v any) (bool, any)) WalkOption
Click to show internal directories.
Click to hide internal directories.