# Functions
All returns a SchemaValidateFunc which tests if the provided value passes all provided SchemaValidateFunc.
Any returns a SchemaValidateFunc which tests if the provided value passes any of the provided SchemaValidateFunc.
CIDRNetwork returns a SchemaValidateFunc which tests if the provided value is of type string, is in valid Value network notation, and has significant bits between min and max (inclusive)
Deprecated: use IsCIDRNetwork instead.
FloatAtLeast returns a SchemaValidateFunc which tests if the provided value is of type float and is at least min (inclusive).
FloatAtMost returns a SchemaValidateFunc which tests if the provided value is of type float and is at most max (inclusive).
FloatBetween returns a SchemaValidateFunc which tests if the provided value is of type float64 and is between min and max (inclusive).
IntAtLeast returns a SchemaValidateFunc which tests if the provided value is of type int and is at least min (inclusive).
IntAtMost returns a SchemaValidateFunc which tests if the provided value is of type int and is at most max (inclusive).
IntBetween returns a SchemaValidateFunc which tests if the provided value is of type int and is between min and max (inclusive).
IntDivisibleBy returns a SchemaValidateFunc which tests if the provided value is of type int and is divisible by a given number.
IntInSlice returns a SchemaValidateFunc which tests if the provided value is of type int and matches the value of an element in the valid slice.
IntNotInSlice returns a SchemaValidateFunc which tests if the provided value is of type int and matches the value of an element in the valid slice.
IPRange returns a SchemaValidateFunc which tests if the provided value is of type string, and in valid IP range
Deprecated: use IsIPv4Range instead.
IsCIDR is a SchemaValidateFunc which tests if the provided value is of type string and a valid CIDR.
IsCIDRNetwork returns a SchemaValidateFunc which tests if the provided value is of type string, is in valid Value network notation, and has significant bits between min and max (inclusive).
IsDayOfTheWeek id a SchemaValidateFunc which tests if the provided value is of type string and a valid english day of the week.
IsIPAddress is a SchemaValidateFunc which tests if the provided value is of type string and is a single IP (v4 or v6).
IsIPv4Address is a SchemaValidateFunc which tests if the provided value is of type string and a valid IPv4 address.
IsIPv4Range is a SchemaValidateFunc which tests if the provided value is of type string, and in valid IP range.
IsIPv6Address is a SchemaValidateFunc which tests if the provided value is of type string and a valid IPv6 address.
IsMACAddress is a SchemaValidateFunc which tests if the provided value is of type string and a valid MAC address.
IsMonth id a SchemaValidateFunc which tests if the provided value is of type string and a valid english month.
IsPortNumber is a SchemaValidateFunc which tests if the provided value is of type string and a valid TCP Port Number.
IsPortNumberOrZero is a SchemaValidateFunc which tests if the provided value is of type string and a valid TCP Port Number or zero.
IsRFC3339Time is a SchemaValidateFunc which tests if the provided value is of type string and a valid RFC33349Time.
IsURLWithHTTPorHTTPS is a SchemaValidateFunc which tests if the provided value is of type string and a valid HTTP or HTTPS URL.
IsURLWithHTTPS is a SchemaValidateFunc which tests if the provided value is of type string and a valid HTTPS URL.
IsURLWithScheme is a SchemaValidateFunc which tests if the provided value is of type string and a valid URL with the provided schemas.
IsUUID is a ValidateFunc that ensures a string can be parsed as UUID.
ListOfUniqueStrings is a ValidateFunc that ensures a list has no duplicate items in it.
NoZeroValues is a SchemaValidateFunc which tests if the provided value is not a zero value.
SingleIP returns a SchemaValidateFunc which tests if the provided value is of type string, and in valid single Value notation
Deprecated: use IsIPAddress instead.
StringDoesNotContainAny returns a SchemaValidateFunc which validates that the provided value does not contain any of the specified Unicode code points in chars.
StringDoesNotMatch returns a SchemaValidateFunc which tests if the provided value does not match a given regexp.
StringInSlice returns a SchemaValidateFunc which tests if the provided value is of type string and matches the value of an element in the valid slice will test with in lower case if ignoreCase is true.
StringIsBase64 is a ValidateFunc that ensures a string can be parsed as Base64.
StringIsEmpty is a ValidateFunc that ensures a string has no characters.
StringIsJSON is a SchemaValidateFunc which tests to make sure the supplied string is valid JSON.
StringIsNotEmpty is a ValidateFunc that ensures a string is not empty.
StringIsNotWhiteSpace is a ValidateFunc that ensures a string is not empty or consisting entirely of whitespace characters.
StringIsValidRegExp returns a SchemaValidateFunc which tests to make sure the supplied string is a valid regular expression.
StringIsWhiteSpace is a ValidateFunc that ensures a string is composed of entirely whitespace.
StringLenBetween returns a SchemaValidateFunc which tests if the provided value is of type string and has length between min and max (inclusive).
StringMatch returns a SchemaValidateFunc which tests if the provided value matches a given regexp.
StringNotInSlice returns a SchemaValidateFunc which tests if the provided value is of type string and does not match the value of any element in the invalid slice will test with in lower case if ignoreCase is true.
ValidateJsonString is a SchemaValidateFunc which tests to make sure the supplied string is valid JSON.
ValidateListUniqueStrings is a ValidateFunc that ensures a list has no duplicate items in it.
ValidateRegexp returns a SchemaValidateFunc which tests to make sure the supplied string is a valid regular expression.
ValidateRFC3339TimeString is a ValidateFunc that ensures a string parses as time.RFC3339 format
Deprecated: use IsRFC3339Time() instead.