Versions in this module Expand all Collapse all v1 v1.1.7 Apr 1, 2021 Changes in this version + func Decode(input interface{}, output interface{}) error + func DecodeHookExec(raw DecodeHookFunc, from reflect.Value, to reflect.Value) (interface{}, error) + func DecodeMetadata(input interface{}, output interface{}, metadata *Metadata) error + func WeakDecode(input, output interface{}) error + func WeakDecodeMetadata(input interface{}, output interface{}, metadata *Metadata) error + func WeaklyTypedHook(f reflect.Kind, t reflect.Kind, data interface{}) (interface{}, error) + type DecodeHookFunc interface + func ComposeDecodeHookFunc(fs ...DecodeHookFunc) DecodeHookFunc + func RecursiveStructToMapHookFunc() DecodeHookFunc + func StringToIPHookFunc() DecodeHookFunc + func StringToIPNetHookFunc() DecodeHookFunc + func StringToSliceHookFunc(sep string) DecodeHookFunc + func StringToTimeDurationHookFunc() DecodeHookFunc + func StringToTimeHookFunc(layout string) DecodeHookFunc + type DecodeHookFuncKind func(reflect.Kind, reflect.Kind, interface{}) (interface{}, error) + type DecodeHookFuncType func(reflect.Type, reflect.Type, interface{}) (interface{}, error) + func TextUnmarshallerHookFunc() DecodeHookFuncType + type DecodeHookFuncValue func(from reflect.Value, to reflect.Value) (interface{}, error) + type Decoder struct + func NewDecoder(config *DecoderConfig) (*Decoder, error) + func (d *Decoder) Decode(input interface{}) error + type DecoderConfig struct + DecodeHook DecodeHookFunc + ErrorUnused bool + Metadata *Metadata + Result interface{} + Squash bool + TagName string + WeaklyTypedInput bool + ZeroFields bool + type Error struct + Errors []string + func (e *Error) Error() string + func (e *Error) WrappedErrors() []error + type Metadata struct + Keys []string + Unused []string