Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Form ¶
Form creates a custom form struct and embeds a url.Values object
func (*Form) IsEmail ¶
IsEmail checks if the value of the given field is a valid email address. If the value is not a valid email address, an error message is added to the form errors.
func (*Form) MinLength ¶
MinLength checks if the value of the given field is at least of a certain length. If the value is shorter than the given length, an error message is added to the form errors. Returns true if the value is at least of the given length, false otherwise.
Click to show internal directories.
Click to hide internal directories.