Documentation
¶
Index ¶
- type Errors
- type Validator
- func (v *Validator) Confirmed(field, value, confirmation string) *Validator
- func (v *Validator) Email(field, value string) *Validator
- func (v *Validator) Errors() Errors
- func (v *Validator) IP(field, value string) *Validator
- func (v *Validator) In(field, value string, allowed []string) *Validator
- func (v *Validator) Matches(field, value, pattern string) *Validator
- func (v *Validator) MaxLength(field, value string, max int) *Validator
- func (v *Validator) MinLength(field, value string, min int) *Validator
- func (v *Validator) Required(field, value string) *Validator
- func (v *Validator) URL(field, value string) *Validator
- func (v *Validator) Valid() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Errors ¶
Errors holds validation error messages keyed by field name.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator performs fluent, chainable input validation.
Click to show internal directories.
Click to hide internal directories.