package
0.0.0-20241207212859-b1d5198b8887
Repository: https://github.com/mujeebcodes/snippetbox.git
Documentation: pkg.go.dev

# Functions

Matches() returns true if a value matches a provided compiled regular expression pattern.
MaxChars() returns true if a value contains no more than n characters.
MinChars() returns true if a value contains at least n characters.
NotBlank() returns true if a value is not an empty string.
PermittedValue() returns true if a value is in a list of specific permitted values.

# Variables

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

# Structs

Define a new Validator struct which contains a map of validation error messages for our form fields.