Documentation ¶
Index ¶
- func BetweenOrEqual[T integers](in, min, max T) error
- func IsEmptyInts[T integers](in ...T) bool
- func IsEmptyList[T comparable](v []T) bool
- func IsEmptyStrings(list ...string) bool
- func IsNotEmptyStrings(list ...string) bool
- func LessOrEqualInt[T integers](v, max T) error
- func LessOrEqualListLen[T comparable](v []T, max int) error
- func LessOrEqualStringLen(v string, max int) error
- func RequiredList[T comparable](list []T) error
- func RequiredStrings(list ...string) error
- func RequiredTime(v time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BetweenOrEqual ¶
func BetweenOrEqual[T integers](in, min, max T) error
BetweenOrEqual - returns an error if the value is less than min or greater than max.
func IsEmptyInts ¶
func IsEmptyInts[T integers](in ...T) bool
IsEmptyInts - returns true if all values are equal 0.
func IsEmptyList ¶
func IsEmptyList[T comparable](v []T) bool
IsEmptyList - returns true if the collection is empty.
func IsEmptyStrings ¶
IsEmptyStrings - returns true if all lines are empty.
func IsNotEmptyStrings ¶
IsNotEmptyStrings - returns true if all strings are non-empty.
func LessOrEqualInt ¶
func LessOrEqualInt[T integers](v, max T) error
LessOrEqualInt - returns an error if the value is greater than max.
func LessOrEqualListLen ¶
func LessOrEqualListLen[T comparable](v []T, max int) error
LessOrEqualListLen - returns an error if the collection size is larger than max.
func LessOrEqualStringLen ¶
LessOrEqualStringLen - returns an error if the string length is greater than max.
func RequiredList ¶
func RequiredList[T comparable](list []T) error
RequiredList - returns an error if the collection is empty.
func RequiredStrings ¶
RequiredStrings - returns an error if all lines are empty.
func RequiredTime ¶
RequiredTime - returns an error if the time is not set (January 1, year 1, 00:00:00 UTC).
Types ¶
This section is empty.