Documentation ¶ Index ¶ func New() (*defaultValidator, error) func RegisterValidation(v Validator, tag string, fn validator.Func, callValidationEvenIfNull ...bool) error func Sort(f1 validator.FieldLevel) bool func Var(v Validator, field interface{}, tag string) error type Validator func NewValidator() Validator Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New() (*defaultValidator, error) New validator func RegisterValidation ¶ added in v1.2.0 func RegisterValidation(v Validator, tag string, fn validator.Func, callValidationEvenIfNull ...bool) error func Sort ¶ added in v1.2.2 func Sort(f1 validator.FieldLevel) bool func Var ¶ added in v1.2.0 func Var(v Validator, field interface{}, tag string) error Types ¶ type Validator ¶ added in v1.2.0 type Validator interface { ValidateStruct(obj interface{}) error Engine() interface{} } func NewValidator ¶ added in v1.2.0 func NewValidator() Validator Source Files ¶ View all Source files custom.go validator.go Click to show internal directories. Click to hide internal directories.