//
pkg.gl
Category
github.com/hunttraitor/class-notifier
internal
models
validator
package
0.0.0-20240401160020-d5b6c7ee0f1b
Repository:
https://github.com/hunttraitor/class-notifier.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
4
Dependents
1
Files
49 SLOC
#
Functions
Equal
checks to see if two fields are equal.
Matches
checks if field matches regular expression.
MaxChars
checks for max number of characters.
MinChars
checks for min number of characters.
NotBlank
checks if field is not blank.
PermittedValue
checks if form has a specific value.
#
Variables
EmailRX
regex for emails recommended by W3C and Web Hypertext Application Technology Working Group.
#
Structs
Validator
FielErrors are associated with a form field and NonFieldErrors are just general form errors.