Versions in this module Expand all Collapse all v1 v1.2.1 Jul 17, 2022 v1.2.0-alpha Jul 17, 2022 v1.0.1 Jul 23, 2022 Changes in this version + func Assign(maps ...map[K]V) map[K]V + func Async(f func() A) chan A + func AttemptWithDelay(maxIteration int, delay time.Duration, f func(int, time.Duration) error) (int, time.Duration, error) + func CheckInSlice(a T, s []T) bool + func Clamp(value, min, max T) T + func Contains(collection []T, element T) bool + func DelOneInSlice(a T, old []T) (new []T) + func Empty() T + func EntriesToMap(entries []Entry[K, V]) map[K]V + func FiltrateBy(in map[K]V, filtrate func(K, V) bool) map[K]V + func FiltrateByKeys(in map[K]V, keys []K) map[K]V + func FiltrateByValues(in map[K]V, values []V) map[K]V + func IndexOf(collection []T, predicate func(T) bool) int + func Invert(in map[K]V) map[V]K + func Keys(in map[K]V) []K + func LastIndexOf(collection []T, predicate func(T) bool) int + func MapUpdateKeys(in map[K]V, iteratee func(K, V) R) map[R]V + func MapUpdateValues(in map[K]V, iteratee func(K, V) R) map[K]R + func NewDebounce(duration time.Duration, fns ...func()) (func(), func()) + func SliceFiltrate(collection []V, filtrate func(V, int) bool) []V + func SliceGroupBy(collection []T, iteratee func(T) U) map[U][]T + func SliceUniq(collection []T, iteratee func(T) U) []T + func SliceUpdateElement(collection []T, iteratee func(T, int) R) []R + func Synchronize(opt ...sync.Locker) synchronize + func Ternary(condition bool, ifOutput T, elseOutput T) T + func Try(callback func() error) (ok bool) + func Values(in map[K]V) []V + func WaitSignal(fn func(sig os.Signal) bool) + type Debounce struct + type Entry struct + Key K + Value V + func MapToEntries(in map[K]V) []Entry[K, V] + type IfElse struct + Ok bool + Result T + func If(condition bool, result T) *IfElse[T] + func IfFn(condition bool, resultFn func() T) *IfElse[T] + func (i *IfElse[T]) Else(result T) T + func (i *IfElse[T]) ElseFn(resultFn func() T) T + func (i *IfElse[T]) ElseIf(condition bool, result T) *IfElse[T] + func (i *IfElse[T]) ElseIfFn(condition bool, resultFn func() T) *IfElse[T] + type SwitchCase struct + Ok bool + Predicate T + Result R + func Switch(predicate T) *SwitchCase[T, R] + func (s *SwitchCase[T, R]) Case(value T, result R) *SwitchCase[T, R] + func (s *SwitchCase[T, R]) CaseFn(value T, resultFn func() R) *SwitchCase[T, R] + func (s *SwitchCase[T, R]) Default(result R) R + func (s *SwitchCase[T, R]) DefaultFn(resultFn func() R) R