package
0.0.0-20230806205039-9e5d004951a3
Repository: https://github.com/m5lapp/go-service-toolkit.git
Documentation: pkg.go.dev

# Functions

Matches checks if the given value satisfies the given regex rx.
New returns a pointer to a new, empty validator struct.
PermittedValue checks that the comparable value of type T is one of the provided permittedValues.
Unique checks that the given slice of comparable values of type T contains only unique values.
ValidateEmail performs standard validation checks against the provided email address and populates any errors into v.
ValidateStrLenByte validates that the given string is between min and max bytes long.
ValidateStrLenRune validates that the given string is between min and max runes (characters) long.
ValidateURL validates that the given string can be parsed as a URL.
ValidateURLHTTP validates that the given string can be parsed as a URL and that the scheme is an HTTP one.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

A Validator is simply a map from field names to error messages.