Documentation
¶
Index ¶
Constants ¶
View Source
const ( Phone = iota Mail Unknown )
Variables ¶
View Source
var (
DefaultValidate *validator.Validate
)
Functions ¶
func FieldError ¶
FieldError wraps a given Validator error providing a message call stack.
func PhoneOrMail ¶
func TransError ¶
func ValidateStruct ¶ added in v1.3.16
Types ¶
type Validator ¶
type Validator interface {
Validate() error
}
Validator is a general interface that allows a message to be validated.
type ValidatorAll ¶ added in v1.3.16
Click to show internal directories.
Click to hide internal directories.