Versions in this module Expand all Collapse all v0 v0.16.0 May 17, 2026 v0.15.0 May 16, 2026 Changes in this version + var ErrUnknownCodec = errors.New("decoder: unknown codec") + func CodecFromExt(ext string) string + func DecodeAny(codec string, data []byte) (any, error) + func Lookup(name string) (contracts.Codec, bool) + func LookupExt(ext string) string + func Register(name string, c contracts.Codec) + func RegisterExt(ext, codec string) + type Decoder = contracts.Codec + func For(codec string) (Decoder, error) + type DurationHook struct + func (DurationHook) Convert(raw any) (any, error) + func (DurationHook) Match(t reflect.Type) bool + type IPHook struct + func (IPHook) Convert(raw any) (any, error) + func (IPHook) Match(t reflect.Type) bool + type RegexHook struct + func (RegexHook) Convert(raw any) (any, error) + func (RegexHook) Match(t reflect.Type) bool + type TypedHook interface + Convert func(raw any) (any, error) + Match func(t reflect.Type) bool + func DefaultTypedHooks() []TypedHook + type TypedHookPlan struct + func BuildTypedHookPlan(t reflect.Type, hooks []TypedHook) *TypedHookPlan + func (p *TypedHookPlan) Apply(merged map[string]any) error + type URLHook struct + func (URLHook) Convert(raw any) (any, error) + func (URLHook) Match(t reflect.Type) bool