Documentation ¶
Index ¶
- func IsEqual[T comparable](anchor T) func(T) bool
- func IsGreater[T constraints.Ordered](anchor T) func(T) bool
- func IsGreaterEqual[T constraints.Ordered](anchor T) func(T) bool
- func IsLess[T constraints.Ordered](anchor T) func(T) bool
- func IsLessEqual[T constraints.Ordered](anchor T) func(T) bool
- func Nil(v any) bool
- func NotNil(v any) bool
- func SliceContains[T comparable](v T) func([]T) bool
- func SliceContainsAll[T comparable](vs []T) func([]T) bool
- func SliceContainsAllRune(runes []rune) func([]rune) bool
- func SliceContainsAny[T comparable](vs []T) func([]T) bool
- func SliceContainsAnyRune(runes []rune) func([]rune) bool
- func SliceContainsRune(r rune) func([]rune) bool
- func SliceEmpty[T any](arr []T) bool
- func SliceNotEmpty[T any](arr []T) bool
- func StringContains(substr string) func(string) bool
- func StringContainsAll(substrs []string) func(string) bool
- func StringContainsAllRune(runes []rune) func(string) bool
- func StringContainsAny(substrs []string) func(string) bool
- func StringContainsAnyRune(runes []rune) func(string) bool
- func StringContainsRune(r rune) func(string) bool
- func StringEmpty(s string) bool
- func StringEqual(other string) func(string) bool
- func StringEqualFold(other string) func(string) bool
- func StringHasPrefix(prefix string) func(string) bool
- func StringHasSuffix(suffix string) func(string) bool
- func StringNotEmpty(s string) bool
- func StringNotEqual(other string) func(string) bool
- func StringNotEqualFold(other string) func(string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEqual ¶
func IsEqual[T comparable](anchor T) func(T) bool
IsEqual returns a function that returns true if the value is equal to the anchor value.
func IsGreater ¶
func IsGreater[T constraints.Ordered](anchor T) func(T) bool
IsGreater returns a function that returns true if the value is greater than the anchor value.
func IsGreaterEqual ¶
func IsGreaterEqual[T constraints.Ordered](anchor T) func(T) bool
IsGreaterEqual returns a function that returns true if the value is greater than or equal to the anchor value.
func IsLess ¶
func IsLess[T constraints.Ordered](anchor T) func(T) bool
IsLess returns a function that returns true if the value is less than the anchor value.
func IsLessEqual ¶
func IsLessEqual[T constraints.Ordered](anchor T) func(T) bool
IsLessEqual returns a function that returns true if the value is less than or equal to the anchor value.
func SliceContains ¶
func SliceContains[T comparable](v T) func([]T) bool
SliceContains returns a function that returns true if the slice contains the value.
func SliceContainsAll ¶
func SliceContainsAll[T comparable](vs []T) func([]T) bool
SliceContainsAll returns a function that returns true if the slice contains all of the values.
func SliceContainsAllRune ¶
SliceContainsAllRune returns a function that returns true if the slice contains all of the runes.
func SliceContainsAny ¶
func SliceContainsAny[T comparable](vs []T) func([]T) bool
SliceContainsAny returns a function that returns true if the slice contains any of the values.
func SliceContainsAnyRune ¶
SliceContainsAnyRune returns a function that returns true if the slice contains any of the runes.
func SliceContainsRune ¶
SliceContainsRune returns a function that returns true if the slice contains the rune.
func SliceEmpty ¶
SliceEmpty returns true if the slice is empty.
func SliceNotEmpty ¶
SliceNotEmpty returns true if the slice is not empty.
func StringContains ¶
StringContains returns a function that returns true if the string contains the substring.
func StringContainsAll ¶
StringContainsAll returns a function that returns true if the string contains all of the substrings.
func StringContainsAllRune ¶
StringContainsAllRune returns a function that returns true if the string contains all of the runes.
func StringContainsAny ¶
StringContainsAny returns a function that returns true if the string contains any of the substrings.
func StringContainsAnyRune ¶
StringContainsAnyRune returns a function that returns true if the string contains any of the runes.
func StringContainsRune ¶
StringContainsRune returns a function that returns true if the string contains the rune.
func StringEqual ¶
StringEqual returns a function that returns true if the string is equal to the other string.
func StringEqualFold ¶
StringEqualFold returns a function that returns true if the string is equal to the other string, ignoring case.
func StringHasPrefix ¶
StringHasPrefix returns a function that returns true if the string has the prefix.
func StringHasSuffix ¶
StringHasSuffix returns a function that returns true if the string has the suffix.
func StringNotEmpty ¶
StringNotEmpty returns true if the string is not empty.
func StringNotEqual ¶
StringNotEqual returns a function that returns true if the string is not equal to the other string.
func StringNotEqualFold ¶
StringNotEqualFold returns a function that returns true if the string is not equal to the other string, ignoring case.
Types ¶
This section is empty.