Versions in this module Expand all Collapse all v1 v1.2.0 Dec 6, 2023 Changes in this version + const MIMEApplicationForm + const MIMEApplicationJSON + const MIMEApplicationXML + const MIMEMultipartForm + const MIMETextXML + var ErrBinding = errors.New("binding failed") + var ErrValidate = errors.New("validate failed") + func Bind(i interface{}, r Request) error + func BindForm(i interface{}, r Request) error + func BindJSON(i interface{}, r Request) error + func BindMultipartForm(i interface{}, r Request) error + func BindXML(i interface{}, r Request) error + func RegisterBodyBinder(mime string, binder BodyBinder) + func RegisterScopeTag(scope BindScope, tag string) + type BindScope int + const BindScopeBody + const BindScopeCookie + const BindScopeHeader + const BindScopeQuery + const BindScopeURI + type BodyBinder func(i interface{}, r Request) error + type Request interface + ContentType func() string + Cookie func(name string) (string, bool) + FormParams func() (url.Values, error) + Header func(key string) (string, bool) + MultipartParams func(maxMemory int64) (*multipart.Form, error) + PathParam func(name string) (string, bool) + QueryParam func(name string) (string, bool) + RequestBody func() io.Reader