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 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 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.
Click to show internal directories.
Click to hide internal directories.