Versions in this module Expand all Collapse all v12 v12.3.1 Feb 23, 2023 Changes in this version + var Form = NewDecoder().SetAliasTag("form") + var Headers = NewDecoder().SetAliasTag("header").IgnoreUnknownKeys(true) + var Params = NewDecoder().SetAliasTag("param").IgnoreUnknownKeys(true) + var Query = NewDecoder().SetAliasTag("url").IgnoreUnknownKeys(true) + func Decode(values map[string][]string, ptr interface{}) error + func DecodeForm(values map[string][]string, ptr interface{}) error + func DecodeHeaders(values map[string][]string, ptr interface{}) error + func DecodeParams(values map[string][]string, ptr interface{}) error + func DecodeQuery(values map[string][]string, ptr interface{}) error + func IsErrPath(err error) bool + type ConversionError struct + Err error + Index int + Key string + Type reflect.Type + func (e ConversionError) Error() string + type Converter func(string) reflect.Value + type Decoder struct + func NewDecoder() *Decoder + func (d *Decoder) AddAliasTag(tag ...string) *Decoder + func (d *Decoder) Decode(dst interface{}, src map[string][]string) error + func (d *Decoder) IgnoreUnknownKeys(i bool) *Decoder + func (d *Decoder) RegisterConverter(value interface{}, converterFunc Converter) *Decoder + func (d *Decoder) SetAliasTag(tag ...string) *Decoder + func (d *Decoder) ZeroEmpty(z bool) *Decoder + type EmptyFieldError struct + Key string + func (e EmptyFieldError) Error() string + type Encoder struct + func NewEncoder() *Encoder + func (e *Encoder) AddAliasTag(tag ...string) + func (e *Encoder) Encode(src interface{}, dst map[string][]string) error + func (e *Encoder) RegisterEncoder(value interface{}, encoder func(reflect.Value) string) + func (e *Encoder) SetAliasTag(tag ...string) + type MultiError map[string]error + func (e MultiError) Error() string + type UnknownKeyError struct + Key string + func (e UnknownKeyError) Error() string