Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultValidate *validator.Validate
)
Functions ¶
func FieldError ¶
FieldError wraps a given Validator error providing a message call stack.
func TransError ¶
TransError translates validator errors into the requested locale.
func ValidateStruct ¶
ValidateStruct validates a value implementing Validator or ValidatorAll.
Types ¶
type Validator ¶
type Validator interface {
Validate() error
}
Validator is a general interface that allows a message to be validated.
type ValidatorAll ¶
Click to show internal directories.
Click to hide internal directories.