Versions in this module Expand all Collapse all v1 v1.9.2 Jul 31, 2023 v1.9.1 Jul 31, 2023 Changes in this version + const MIMEHTML + const MIMEJSON + const MIMEMSGPACK + const MIMEMSGPACK2 + const MIMEMultipartPOSTForm + const MIMEPOSTForm + const MIMEPROTOBUF + const MIMEPlain + const MIMETOML + const MIMEXML + const MIMEXML2 + const MIMEYAML + var EnableDecoderDisallowUnknownFields = false + var EnableDecoderUseNumber = false + var ErrConvertMapStringSlice = errors.New("can not convert to map slices of strings") + var ErrConvertToMapString = errors.New("can not convert to map of strings") + var ErrMultiFileHeader = errors.New("unsupported field type for multipart.FileHeader") + var ErrMultiFileHeaderLenInvalid = errors.New("unsupported len of array for []*multipart.FileHeader") + var Form = formBinding + var FormMultipart = formMultipartBinding + var FormPost = formPostBinding + var Header = headerBinding + var JSON = jsonBinding + var MsgPack = msgpackBinding + var ProtoBuf = protobufBinding + var Query = queryBinding + var TOML = tomlBinding + var Uri = uriBinding + var XML = xmlBinding + var YAML = yamlBinding + func MapFormWithTag(ptr any, form map[string][]string, tag string) error + type Binding interface + Bind func(*http.Request, any) error + Name func() string + func Default(method, contentType string) Binding + type BindingBody interface + BindBody func([]byte, any) error + type BindingUri interface + BindUri func(map[string][]string, any) error + Name func() string + type SliceValidationError []error + func (err SliceValidationError) Error() string + type StructValidator interface + Engine func() any + ValidateStruct func(any) error + var Validator StructValidator = &defaultValidator{}