Documentation
¶
Index ¶
- Variables
- type Form
- func (form *Form) MatchesPattern(field string, pattern *regexp.Regexp)
- func (form *Form) MaxLength(field string, length int)
- func (form *Form) MinLength(field string, length int)
- func (form *Form) PermittedValues(field string, opts ...string)
- func (form *Form) Required(fields ...string)
- func (form *Form) Valid() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var EmailRX = regexp.MustCompile("^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](" +
"?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$")
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.