Versions in this module Expand all Collapse all v0 v0.1.0 Sep 28, 2023 Changes in this version + func B2s(b []byte) string + func Bind(req *protocol.Request, obj interface{}, pathParams param.Params) error + func BindAndValidate(req *protocol.Request, obj interface{}, pathParams param.Params) error + func MustRegTypeUnmarshal(t reflect.Type, fn func(v string, emptyAsZero bool) (reflect.Value, error)) + func MustRegValidateFunc(funcName string, fn func(args ...interface{}) error, force ...bool) + func S2b(s string) (b []byte) + func SetErrorFactory(bindErrFactory, validatingErrFactory func(failField, msg string) error) + func SetLooseZeroMode(enable bool) + func UseGJSONUnmarshaler() + func UseStdJSONUnmarshaler() + func UseThirdPartyJSONUnmarshaler(unmarshaler func(data []byte, v interface{}) error) + func Validate(obj interface{}) error + type Binder struct + func NewBinder() *Binder + func (b *Binder) Bind(request *protocol.Request, i interface{}, params param.Params) error + func (b *Binder) BindAndValidate(request *protocol.Request, i interface{}, params param.Params) error + func (b *Binder) BindForm(request *protocol.Request, i interface{}) error + func (b *Binder) BindHeader(request *protocol.Request, i interface{}) error + func (b *Binder) BindJSON(request *protocol.Request, i interface{}) error + func (b *Binder) BindPath(request *protocol.Request, i interface{}, params param.Params) error + func (b *Binder) BindProtobuf(request *protocol.Request, i interface{}) error + func (b *Binder) BindQuery(request *protocol.Request, i interface{}) error + func (b *Binder) Name() string + type Validator struct + func NewValidator() *Validator + func (v *Validator) Engine() interface{} + func (v *Validator) ValidateStruct(i interface{}) error + func (v *Validator) ValidateTag() string