package
0.0.0-20240826032957-54579a01fbe0
Repository: https://github.com/rlr524/snippetboxv2.git
Documentation: pkg.go.dev

# Functions

Matches returns true if a value matches the provided compiled regex pattern.
MaxChars returns true if the value contains no more than n characters.
MinChars returns true if a value contains at least n characters.
NotBlank returns true if a value us not an empty string.
PermittedInt returns true if a value is in a list of permitted integers.

# Variables

EmailRX will Use the regexp.MustCompile() function to parse a regular expression pattern for sanity checking the format of an email address.

# Structs

Validator contains a map of validation errors for the form fields.