Documentation
¶
Index ¶
- Constants
- Variables
- func Bind(obj interface{}, values map[string][]string, tagKey string, canonical bool) error
- func SetBoolField(val string, field reflect.Value) error
- func SetField(kind reflect.Kind, val string, field reflect.Value) error
- func SetFloatField(val string, bitSize int, field reflect.Value) error
- func SetIntField(val string, bitSize int, field reflect.Value) error
- func SetUintField(val string, bitSize int, field reflect.Value) error
- type AfterBinder
- type BeforeBinder
- type Binder
Constants ¶
View Source
const ( TagHeader = "header" TagParam = "param" TagForm = "form" TagJSON = "json" TagXML = "xml" TagProtobuf = "protobuf" TagMsgpack = "msgpack" TagYAML = "yaml" TagEnv = "env" TagCookie = "cookie" )
Variables ¶
View Source
var ( EnableDecoderUseNumber = false EnableDecoderDisallowUnknownFields = false )
View Source
var CookieBinder = &cookieBinder{}
View Source
var EnvBinder = &envBinder{}
View Source
var (
ErrInvalidType = errors.New("invalid type")
)
View Source
var FormBinder = &formBinder{}
View Source
var FormMultipartBinder = &formMultipartBinder{}
View Source
var FormPostBinder = &formPostBinder{}
View Source
var HeaderBinder = &headerBinder{}
View Source
var JSONBodyBinder = &jsonBodyBinder{}
View Source
var MsgpackBodyBinder = &msgpackBodyBinder{}
View Source
var ParamBinder = ¶mBinder{}
View Source
var ProtobufBodyBinder = &protobufBodyBinder{}
View Source
var QueryBinder = &queryBinder{}
View Source
var XMLBodyBinder = &xmlBodyBinder{}
View Source
var YAMLBodyBinder = &yamlBodyBinder{}
Functions ¶
func SetFloatField ¶ added in v1.0.14
func SetIntField ¶ added in v1.0.14
Types ¶
type AfterBinder ¶
type AfterBinder interface {
AfterBind(echo.Context) error
}
type BeforeBinder ¶
type BeforeBinder interface {
BeforeBind(echo.Context) error
}
Click to show internal directories.
Click to hide internal directories.