Documentation ¶
Index ¶
- func ContainsNull(s string) bool
- func ContainsSpaces(s string) bool
- func IsBlank(s string) bool
- func IsEmpty[T any](s []T) bool
- func IsGreaterOrEqual[T math.Number](value, other T, msg string, args ...any) error
- func IsGreaterOrEqualToZero[T math.Number](value T, msg string, args ...any) error
- func IsGreaterThan[T math.Number](value, other T, msg string, args ...any) error
- func IsGreaterThanZero[T math.Number](value T, msg string, args ...any) error
- func IsNotBlank(s string) bool
- func IsNotEmpty[T any](s []T) bool
- func IsNotNil(value any, msg string, args ...any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsNull ¶
func ContainsSpaces ¶
func IsGreaterOrEqual ¶ added in v1.3.2
IsGreaterOrEqual checks if the first provided numeric value (of type T) is greater or equal to the second. It returns an error if the first value is less than the second, using the provided message and arguments. T is a generic type constrained to math.Number, allowing the function to work with various numeric types.
func IsGreaterOrEqualToZero ¶ added in v1.3.2
IsGreaterOrEqualToZero checks if the provided numeric value (of type T) is greater or equal to zero. It returns an error if the value is less than zero, using the provided message and arguments. T is a generic type constrained to math.Number, allowing the function to work with various numeric types.
func IsGreaterThan ¶ added in v1.3.2
IsGreaterThan checks if the first provided numeric value (of type T) is greater than the second. It returns an error if the first value is not greater than the second, using the provided message and arguments. T is a generic type constrained to math.Number, allowing the function to work with various numeric types.
func IsGreaterThanZero ¶ added in v1.2.1
IsGreaterThanZero checks if the provided numeric value (of type T) is greater than zero. It returns an error if the value is not greater than zero, using the provided message and arguments. T is a generic type constrained to math.Number, allowing the function to work with various numeric types.
func IsNotBlank ¶
func IsNotEmpty ¶
Types ¶
This section is empty.