Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Form ¶
type Form struct { url.Values Errors FormErrors }
Form creates a custom form struct, embeds a url.Values object
type FormErrors ¶ added in v1.0.1
func (FormErrors) Add ¶ added in v1.0.1
func (e FormErrors) Add(field, message string)
Add adds an error message for a given form field
func (FormErrors) Get ¶ added in v1.0.1
func (e FormErrors) Get(field string) string
Get returns the first error message
Click to show internal directories.
Click to hide internal directories.