set

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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 AsMapStringInterface

func AsMapStringInterface(in map[any]any) map[string]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 Merge

func Merge(a, b map[any]any) map[any]any

func Values

func Values[K comparable, V any](a map[K]V) []V

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL