Documentation ¶
Index ¶
- Variables
- func NoEmptyStrings(i interface{}, k string) ([]string, []error)
- func URLIsHTTPOrHTTPS(i interface{}, k string) (_ []string, errors []error)
- func URLIsHTTPS(i interface{}, k string) (_ []string, errors []error)
- func URLWithScheme(validSchemes []string) schema.SchemaValidateFunc
- func UUID(i interface{}, k string) (warnings []string, 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 NoEmptyStrings ¶
NoEmptyStrings validates that the string is not just whitespace characters (equal to [\r\n\t\f\v ])
func URLIsHTTPOrHTTPS ¶
func URLIsHTTPS ¶
func URLWithScheme ¶
func URLWithScheme(validSchemes []string) schema.SchemaValidateFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.