Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultValidator *vv10.Validate
)
Functions ¶
func NewDefaultValidator ¶
func RegisterCustomValidator ¶
func RegisterCustomValidator(fn vv10.CustomTypeFunc, types ...interface{})
func RegisterStructLevel ¶
func RegisterStructLevel(fn vv10.StructLevelFunc, types ...interface{})
func Validate ¶
func Validate(v interface{}) error
Validate validates the fields of a struct based on 'validator' tags and returns errors found indexed by the field name.
func ValidateString ¶ added in v0.258.0
Var validates a single string using tag style validation.
Types ¶
Click to show internal directories.
Click to hide internal directories.