Documentation ¶
Overview ¶
Package validator can be used to return form validation errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldError ¶
FieldError for validation.
func NewFieldError ¶
func NewFieldError(field string, err ...error) FieldError
NewFieldError for validation.
type FormError ¶
type FormError []FieldError
FormError for validation.
func TemplateErrors ¶
TemplateErrors returns a FormError with the form errors to be consumed in a template. If no errors exist, it returns an empty object.
Click to show internal directories.
Click to hide internal directories.