Documentation ¶
Overview ¶
Go Struct Validator
Go Struct Validator Default Validator
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterValidator ¶
func RegisterValidator(tag string, validatorF validator)
simply add or remove tag validator
func UnregisterValidator ¶
func UnregisterValidator(tag string)
func Validate ¶
func Validate(input interface{}, nameSpaces ...string) map[string]ValidationError
main func, validation of each elem
Types ¶
type ValidationError ¶
error format, exported for casting purpose
Click to show internal directories.
Click to hide internal directories.