Versions in this module Expand all Collapse all v1 v1.4.1 Oct 13, 2025 v1.4.0 Jul 27, 2023 Changes in this version + var Binders = map[string]Binder + var DefaultMaxMemory int64 = 32 << 20 + var Form = FormBinder + var FormTagName = "form" + var Header = HeaderBinder + var HeaderTagName = "header" + var JSON = JSONBinder + var Query = QueryBinder + var QueryTagName = "query" + var XML = XMLBinder + func Auto(r *http.Request, obj any) (err error) + func Bind(r *http.Request, obj any) error + func DecodeUrlValues(values map[string][]string, ptr any, tagName string) error + func DisableValidator() + func MustBind(r *http.Request, obj any) + func Register(name string, b Binder) + func Remove(names ...string) + func ResetValidator() + func Validate(obj any) error + type Binder interface + Bind func(r *http.Request, obj any) error + Name func() string + func GetBinder(name string) Binder + type BinderFunc func(r *http.Request, obj any) error + func (fn BinderFunc) Bind(r *http.Request, obj any) error + func (fn BinderFunc) Name() string + type DataValidator interface + Validate func(i any) error + var Validator DataValidator = &stdValidator{} + type FormBinder struct + TagName string + func (FormBinder) Name() string + func (b FormBinder) Bind(r *http.Request, ptr any) error + func (b FormBinder) BindValues(values url.Values, ptr any) error + type HeaderBinder struct + TagName string + func (HeaderBinder) Name() string + func (b HeaderBinder) Bind(r *http.Request, ptr any) error + func (b HeaderBinder) BindValues(headers map[string][]string, ptr any) error + type JSONBinder struct + func (JSONBinder) Bind(r *http.Request, ptr any) error + func (JSONBinder) BindBytes(bts []byte, ptr any) error + func (JSONBinder) Name() string + type QueryBinder struct + TagName string + func (QueryBinder) Name() string + func (b QueryBinder) Bind(r *http.Request, ptr any) error + func (b QueryBinder) BindValues(values url.Values, ptr any) error + type XMLBinder struct + func (XMLBinder) Bind(r *http.Request, obj any) error + func (XMLBinder) BindBytes(bts []byte, ptr any) error + func (XMLBinder) Name() string