Versions in this module Expand all Collapse all v1 v1.0.0 Apr 18, 2024 Changes in this version + var EmailRX = regexp.MustCompile(...) + func MatchString(a, b string) bool + func Matches(value string, rx *regexp.Regexp) bool + func MaxChars(value string, n int) bool + func MinChars(value string, n int) bool + func NotBlank(value string) bool + func PermittedValue[T comparable](value T, permittedValues ...T) bool + type Validator struct + FieldErrors map[string]string + NonFieldErrors []string + func (v *Validator) AddFieldError(key, message string) + func (v *Validator) AddNonFieldError(message string) + func (v *Validator) CheckField(ok bool, key, message string) + func (v *Validator) Valid() bool