Documentation ¶
Index ¶
- func Contains[T comparable](list []T, a T) bool
- func FlatMapSliceValues[V any, V2 any](values []V, mapper func(V) []V2) []V2
- func GetSortedMapValues[T any](r map[string]T) []T
- func MapSliceValues[V any, V2 any](values []V, mapper func(V) V2) []V2
- func MapSliceValuesErr[V any, V2 any](values []V, mapper func(V) (V2, error)) ([]V2, error)
- func MapValues[K comparable, V any, V2 any](m map[K]V, mapper func(V) V2) map[K]V2
- func MaxBy[K constraints.Ordered, V any, P constraints.Ordered](r map[K]V, selector func(V) P) K
- func SortResourcesById[T any](r []T, idGetter func(T) string) []T
- func SortedKeys[K constraints.Ordered, V any](m map[K]V) []K
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](list []T, a T) bool
func FlatMapSliceValues ¶
func GetSortedMapValues ¶
func MapSliceValues ¶
func MapSliceValuesErr ¶ added in v0.1.13
func MapValues ¶
func MapValues[K comparable, V any, V2 any](m map[K]V, mapper func(V) V2) map[K]V2
func MaxBy ¶
func MaxBy[K constraints.Ordered, V any, P constraints.Ordered](r map[K]V, selector func(V) P) K
func SortResourcesById ¶
func SortedKeys ¶ added in v0.1.39
func SortedKeys[K constraints.Ordered, V any](m map[K]V) []K
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.