Documentation ¶
Index ¶
- func InRange(allowed interface{}, actual interface{}) error
- func StrIsBool(v string) error
- func StrIsIP(v string) error
- func StrIsInt(v string) error
- func StrIsIntInSet(allowable []int, v string) error
- func StrIsMAC(v string) error
- func StrIsPositiveInt(v string) error
- func StrIsUUIDv4(v string) error
- func StrNotEmpty(v string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InRange ¶
func InRange(allowed interface{}, actual interface{}) error
InRange will return an error if the expected list of values does not contain the actual value provided
func StrIsIntInSet ¶
StrIsIntInSet will return an error if the input is not an integer or if it is not in the provided list of expected ints
func StrIsPositiveInt ¶
StrIsPositiveInt will return an error if the input is not both an integer and greater than or equal to 0
func StrIsUUIDv4 ¶
func StrNotEmpty ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.