Versions in this module Expand all Collapse all v0 v0.1.49 Jul 20, 2024 Changes in this version + func Batch[T any, V any](fn func(T) V, ts []T) []V + func BothExistAny[E any, K comparable](es [][]E, fn func(e E) K) []E + func BothExist[E comparable](es ...[]E) []E + func Complete[E comparable](a []E, b []E) bool + func Contain[E comparable](e E, es ...E) bool + func CopyStructFields(a any, b any, fields ...string) (err error) + func DeleteAt[E any](es *[]E, index ...int) []E + func Delete[E any](es []E, index ...int) []E + func DistinctAnyGetComparable[E any, K comparable](es []E, fn func(e E) K) []K + func DistinctAny[E any, K comparable](es []E, fn func(e E) K) []E + func Distinct[T comparable](ts []T) []T + func DuplicateAny[E any, K comparable](es []E, fn func(e E) K) bool + func Duplicate[E comparable](es []E) bool + func Equal[E comparable](a []E, b []E) bool + func Filter[E, T any](es []E, fn func(e E) (T, bool)) []T + func GetElemByIndex(array []int, index int) (int, error) + func GetSwitchFromOptions(Options map[string]bool, key string) (result bool) + func HasKey[K comparable, V any](m map[K]V, k K) bool + func If[T any](isa bool, a, b T) T + func IndexAny[E any, K comparable](e E, es []E, fn func(e E) K) int + func IndexOf[E comparable](e E, es ...E) int + func InitMap[K comparable, V any](val *map[K]V) + func InitSlice[T any](val *[]T) + func Keys[K comparable, V any](kv map[K]V) []K + func Max[E Ordered](e ...E) E + func Min[E Ordered](e ...E) E + func NotNilReplace[T any](old, new_ *T) + func OrderPtr[E comparable, T any](es []E, ts *[]T, fn func(t T) E) []T + func Order[E comparable, T any](es []E, ts []T, fn func(t T) E) []T + func Paginate[E any](es []E, pageNumber int, showNumber int) []E + func SetSwitchFromOptions(options map[string]bool, key string, value bool) + func Single[E comparable](a, b []E) []E + func SliceAnySub[E any, T comparable](a, b []E, fn func(t E) T) []E + func SliceSetAny[E any, K comparable](es []E, fn func(e E) K) map[K]struct + func SliceSet[E comparable](es []E) map[E]struct + func SliceSubAny[E comparable, T any](a []E, b []T, fn func(t T) E) []E + func SliceSub[E comparable](a, b []E) []E + func SliceToMapAny[E any, K comparable, V any](es []E, fn func(e E) (K, V)) map[K]V + func SliceToMapOkAny[E any, K comparable, V any](es []E, fn func(e E) (K, V, bool)) map[K]V + func SliceToMap[E any, K comparable](es []E, fn func(e E) K) map[K]E + func Slice[E any, T any](es []E, fn func(e E) T) []T + func SortAny[E any](es []E, fn func(a, b E) bool) + func Sort[E Ordered](es []E, asc bool) []E + func StructFieldNotNilReplace(dest, src any) + func ToPtr[T any](t T) *T + func UniqueJoin(s ...string) string + func Values[K comparable, V any](kv map[K]V) []V + type Ordered interface