Documentation ¶
Index ¶
- func LengthBetween(min, max int) *checker
- func New[T paramTypes](key string) *param[T]
- func NewChecker() *checker
- func TextConsistsOf(chars Charset) *checker
- func TextHasPrefix(pfx string, caseFold bool) *checker
- func TextHasSuffix(sfx string, caseFold bool) *checker
- func TextIsOneOf(vs ...string) *checker
- func TextMatches(expr string) *checker
- func ValueBetween[T numbers](min, max T) *checker
- func ValueGreaterThan[T numbers](min T) *checker
- func ValueIsOneOf[T paramTypes](vs ...T) *checker
- func ValueLessThan[T numbers](max T) *checker
- type Charset
- type Param
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChecker ¶
func NewChecker() *checker
func ValueBetween ¶
func ValueBetween[T numbers](min, max T) *checker
func ValueGreaterThan ¶
func ValueGreaterThan[T numbers](min T) *checker
func ValueIsOneOf ¶
func ValueIsOneOf[T paramTypes](vs ...T) *checker
func ValueLessThan ¶
func ValueLessThan[T numbers](max T) *checker
Types ¶
Click to show internal directories.
Click to hide internal directories.