Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckErrors ¶
CheckErrors of validator and return formatted errors:
Types ¶
type FieldError ¶ added in v0.4.0
FieldError contains field name and validator error
func (FieldError) Error ¶ added in v0.4.0
func (f FieldError) Error() string
type FieldLevel ¶ added in v0.4.0
type FieldLevel = validator.FieldLevel
type Options ¶
type Options struct { Struct interface{} Errors error Formatter func(fields []*FieldError) string }
Options to call CheckErrors method
Click to show internal directories.
Click to hide internal directories.