package
0.0.6
Repository: https://github.com/coderi421/gframework.git
Documentation: pkg.go.dev

# Packages

Package field implements field path functions when do validation.

# Functions

EmptyError returns a string explanation of a "must not be empty" validation failure.
InclusiveRangeError returns a string explanation of a numeric "must be between" validation failure.
IsDNS1123Label tests for a string that conforms to the definition of a label in DNS (RFC 1123).
IsDNS1123Subdomain tests for a string that conforms to the definition of a subdomain in DNS (RFC 1123).
IsInRange tests that the argument is in an inclusive range.
IsQualifiedName tests whether the value passed is what IAM calls a "qualified name".
IsValidIP tests that the argument is a valid IP address.
IsValidIPv4Address tests that the argument is a valid IPv4 address.
IsValidIPv6Address tests that the argument is a valid IPv6 address.
IsValidLabelValue tests whether the value passed is a valid label value.
IsValidPassword validate password.
IsValidPercent checks that string is in the form of a percentage.
IsValidPortNum tests that the argument is a valid, non-zero port number.
MaxLenError returns a string explanation of a "string too long" validation failure.
NewValidator creates a new Validator.
RegexError returns a string explanation of a regex validation failure.

# Constants

DNS1123LabelMaxLength is a label's max length in DNS (RFC 1123).
DNS1123SubdomainMaxLength is a subdomain's max length in DNS (RFC 1123).
LabelValueMaxLength is a label's max length.

# Structs

Validator is a custom validator for configs.