Documentation ¶
Index ¶
- func CheckCombinationOfAllowedValues(errs *url.Values, allowed []string, key string, commaSeparatedValue string)
- func CheckIntValueRange(errs *url.Values, min int, max int, key string, value int)
- func CheckLength(errs *url.Values, min int, max int, key string, value string)
- func CheckValidRegexOrEmpty(errs *url.Values, key string, value string)
- func DateNotInRangeInclusive(value string, earliest string, latest string) bool
- func InvalidISODate(value string) bool
- func NotInAllowedValues[T comparable](allowed []T, value T) bool
- func SliceContains[T comparable](s []T, e T) bool
- func ViolatesPattern(pattern string, value string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIntValueRange ¶
func CheckValidRegexOrEmpty ¶
func DateNotInRangeInclusive ¶
func InvalidISODate ¶
func NotInAllowedValues ¶
func NotInAllowedValues[T comparable](allowed []T, value T) bool
func SliceContains ¶
func SliceContains[T comparable](s []T, e T) bool
func ViolatesPattern ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.