Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidationError ¶
type ValidationError struct { Field string `json:"field"` Code string `json:"code"` Argument string `json:"argument"` Message string `json:"message"` }
func ParseValidationErr ¶
func ParseValidationErr(err error) []ValidationError
ParseValidationErr extracts error messages from validation error
type Validator ¶
type Validator interface {
Validate(s interface{}) error
}
func NewInternalValidator ¶
func NewInternalValidator(validator *validCheck.Validate) Validator
Click to show internal directories.
Click to hide internal directories.