Documentation ¶
Index ¶
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])?)*$")
EmailRX emails must match this pattern
Functions ¶
This section is empty.
Types ¶
type Form ¶
Form anonymous url.Values object for form data and Errors field for validation
func (*Form) MatchesPattern ¶
MatchesPattern verifies a value matches a regex pattern
func (*Form) PermittedValues ¶
PermittedValues check if field matches a permitted option
Click to show internal directories.
Click to hide internal directories.