Documentation
¶
Index ¶
- Variables
- func ChannelFnCount[T interface{}](ctx context.Context, fn func(ctx context.Context, ch chan<- T) error) (int, error)
- func ChannelFnList[T interface{}](ctx context.Context, fn func(ctx context.Context, ch chan<- T) error) ([]T, error)
- func ChannelFnMap[T interface{}](ctx context.Context, getFn func(ctx context.Context, ch chan<- T) error, ...) error
- func Contains[T comparable](list []T, value T) bool
- func Exclude[T comparable](list []T, excludes ...T) []T
- func Filter[T any](list []T, match func(value T) bool) []T
- func Find[T any](list []T, match func(value T) bool) (*T, error)
- func Ptr[T any](value T) *T
- func Reverse[T any](values []T) []T
- func UnPtr[T any](ptr *T) T
- func Unique[T comparable](list []T) []T
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFoundError = stderrors.New("not found")
Functions ¶
func ChannelFnCount ¶ added in v1.1.0
func ChannelFnList ¶
func ChannelFnMap ¶
func Contains ¶
func Contains[T comparable](list []T, value T) bool
func Exclude ¶
func Exclude[T comparable](list []T, excludes ...T) []T
func Unique ¶
func Unique[T comparable](list []T) []T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.