Documentation
¶
Overview ¶
Package check implements common checks that can be used for flag and positional parameter values.
Index ¶
- func AtLeast[T cmp.Ordered](min T) value.CheckFunc[T]
- func AtMost[T cmp.Ordered](max T) value.CheckFunc[T]
- func GreaterThan[T cmp.Ordered](min T) value.CheckFunc[T]
- func LessThan[T cmp.Ordered](max T) value.CheckFunc[T]
- func NotBlank(value string) error
- func OneOf[T comparable](options ...T) value.CheckFunc[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GreaterThan ¶
GreaterThan checks that a value is greater than a given minimum.
func OneOf ¶
func OneOf[T comparable](options ...T) value.CheckFunc[T]
OneOf checks that a value is present in a given list of allowed options.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.