Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func InterceptError ¶
InterceptError 拦截自定义Error
Types ¶
type JsonValidator ¶
type JsonValidator struct { Validation []Validation Translation []Translation }
func (*JsonValidator) LoadTranslation ¶
func (jv *JsonValidator) LoadTranslation(translations ...Translation) *JsonValidator
func (*JsonValidator) LoadValidation ¶
func (jv *JsonValidator) LoadValidation(validations ...Validation) *JsonValidator
type Translation ¶
type Translation func() (string, validator.RegisterTranslationsFunc, validator.TranslationFunc)
type Validation ¶
type Validation func() (string, validator.Func)
Click to show internal directories.
Click to hide internal directories.