Documentation
¶
Index ¶
- Variables
- func AzureTimeZoneString() func(interface{}, string) ([]string, []error)
- func Base64EncodedString(i interface{}, k string) ([]string, []error)
- func CIDR(i interface{}, k string) (warnings []string, errors []error)
- func FloatInSlice(valid []float64) func(interface{}, string) ([]string, []error)
- func GoogleClientID(v interface{}, k string) (warnings []string, errors []error)
- func IPv4Address(i interface{}, k string) (warnings []string, errors []error)
- func IPv4AddressOrEmpty(i interface{}, k string) (warnings []string, errors []error)
- func ISO8601DateTime(i interface{}, k string) (warnings []string, errors []error)
- func ISO8601Duration(i interface{}, k string) (warnings []string, errors []error)
- func ISO8601DurationBetween(min string, max string) func(i interface{}, k string) (warnings []string, errors []error)
- func LowerCasedString(i interface{}, k string) ([]string, []error)
- func PortNumber(i interface{}, k string) (warnings []string, errors []error)
- func PortNumberOrZero(i interface{}, k string) (warnings []string, errors []error)
- func PortOrPortRangeWithin(min int, max int) func(interface{}, string) ([]string, []error)
- func RegExHelper(i interface{}, k, r string) (match bool, errors []error)
Constants ¶
This section is empty.
Variables ¶
View Source
var UUIDRegExp = regexp.MustCompile("^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[8|9|aA|bB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$")
uuid regex helper
Functions ¶
func AzureTimeZoneString ¶
func Base64EncodedString ¶
Base64EncodedString validates that the string is base64 encoded
func FloatInSlice ¶
FloatInSlice returns a SchemaValidateFunc which tests if the provided value is of type float64 and matches the value of an element in the valid slice
func GoogleClientID ¶
func IPv4Address ¶
func IPv4AddressOrEmpty ¶
func ISO8601DateTime ¶
func ISO8601Duration ¶
func ISO8601DurationBetween ¶
func LowerCasedString ¶
LowerCasedString validates that the string is lower-cased
func PortNumber ¶
func PortNumberOrZero ¶
func PortOrPortRangeWithin ¶
func RegExHelper ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.