Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotStruct = errors.New("wrong argument given, should be a struct") ErrInvalidValidatorSyntax = errors.New("invalid validator syntax") ErrValidateForUnexportedFields = errors.New("validation for unexported field is not allowed") ErrValidateForUnsupportedTypes = errors.New("validation for unsupported type is not allowed") ErrUnsupportedValidator = errors.New("validator for this type is unsupported") )
Functions ¶
Types ¶
type ValidationError ¶
type ValidationError struct { Err error // contains filtered or unexported fields }
func (ValidationError) Error ¶
func (v ValidationError) Error() string
func (ValidationError) Field ¶
func (v ValidationError) Field() string
func (ValidationError) Tag ¶
func (v ValidationError) Tag() string
func (ValidationError) Value ¶
func (v ValidationError) Value() any
type ValidationErrors ¶
type ValidationErrors []ValidationError
func (ValidationErrors) Error ¶
func (v ValidationErrors) Error() string
Click to show internal directories.
Click to hide internal directories.