package
Version:
v0.0.0-...-38fbac2
Opens a new window with list of versions in this module.
Published: Jul 27, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Form struct {
url.Values
Errors errors
}
Form it creates a custom form struct, embeds a url.Values object
New initialises the form Struct
Has checks if form field is in post and not empty
IsMail checks for valid email address
MinLength checks for string minimum length
Required checks for required field
Valid returns true if there are no errors , otherwise false
Source Files
¶
Click to show internal directories.
Click to hide internal directories.