Documentation ¶
Index ¶
- func AsMapInterfaceInterface[K comparable](in map[K]any) map[any]any
- func AsMapStringInterface(in map[any]any) map[string]any
- func Clone[K comparable, V any](values map[K]V) map[K]V
- func CollectSlice[K comparable, T, V any](values map[K]V, fn func(k K, v V) (T, bool)) []T
- func Contains[K comparable, V any](values map[K]V, key K) bool
- func From[K comparable, T, V any](slice []T, fn func(item T) (K, V)) map[K]V
- func Keys[K comparable, V any](a map[K]V) []K
- func Map[K comparable, Vin any, Vout any](values map[K]Vin, fn func(in Vin) Vout) map[K]Vout
- func Merge(a, b map[any]any) map[any]any
- func Values[K comparable, V any](a map[K]V) []V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsMapInterfaceInterface ¶
func AsMapInterfaceInterface[K comparable](in map[K]any) map[any]any
func Clone ¶
func Clone[K comparable, V any](values map[K]V) map[K]V
func CollectSlice ¶
func CollectSlice[K comparable, T, V any](values map[K]V, fn func(k K, v V) (T, bool)) []T
func Contains ¶
func Contains[K comparable, V any](values map[K]V, key K) bool
func From ¶
func From[K comparable, T, V any](slice []T, fn func(item T) (K, V)) map[K]V
func Keys ¶
func Keys[K comparable, V any](a map[K]V) []K
func Map ¶
func Map[K comparable, Vin any, Vout any](values map[K]Vin, fn func(in Vin) Vout) map[K]Vout
func Values ¶
func Values[K comparable, V any](a map[K]V) []V
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.