Documentation ¶
Index ¶
- Constants
- func Any[T any](array []T, block func(it T) bool) bool
- func Contains[T comparable](arr []T, target T) bool
- func Done(ctx context.Context) bool
- func Error(_ any, err error) error
- func Filter[T any](arr []T, block func(it T) bool) []T
- func IsBlank(str string) bool
- func IsEmpty[T any](array []T) bool
- func IsNotBlank(str string) bool
- func IsNotEmpty[T any](array []T) bool
- func Map[T any, N any](arr []T, block func(it T) N) []N
- func Must(err error)
- func Must1(_ any, err error)
- func Must2(_ any, _ any, err error)
- type DummyAddr
Constants ¶
View Source
const EmptyString = ""
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](arr []T, target T) bool
func IsNotBlank ¶
func IsNotEmpty ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.