Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddValidation ¶
func AddValidation(v Validation)
Types ¶
type Validation ¶
func ValidateLength ¶
func ValidateLength(min, max uint) Validation
type ValidationError ¶
type ValidationError struct {
Errors []error
}
func (ValidationError) Error ¶
func (ve ValidationError) Error() string
type Validator ¶
type Validator struct {
Validations []Validation
}
func NewValidator ¶
func NewValidator(validations ...Validation) Validator
Click to show internal directories.
Click to hide internal directories.