validation

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCombinationOfAllowedValues

func CheckCombinationOfAllowedValues(errs *url.Values, allowed []string, key string, commaSeparatedValue string)

func CheckIntValueRange

func CheckIntValueRange(errs *url.Values, min int, max int, key string, value int)

func CheckLength

func CheckLength(errs *url.Values, min int, max int, key string, value string)

func CheckValidRegexOrEmpty

func CheckValidRegexOrEmpty(errs *url.Values, key string, value string)

func DateNotInRangeInclusive

func DateNotInRangeInclusive(value string, earliest string, latest string) bool

func InvalidISODate

func InvalidISODate(value string) bool

func NotInAllowedValues

func NotInAllowedValues[T comparable](allowed []T, value T) bool

func SliceContains

func SliceContains[T comparable](s []T, e T) bool

func ViolatesPattern

func ViolatesPattern(pattern string, value string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL