maps

package
v0.0.0-...-e20b040 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy[T comparable, V any, M ~map[T]V](dest, source M)

Copy copies everything from source into dest. Existing values are overwritten. dest may be nil if, and only if, source is empty or nil

func Keys

func Keys[K comparable, V any, M ~map[K]V](m M) []K

Keys returns all keys of the map

func ToStringMap

func ToStringMap(m map[interface{}]interface{}) map[string]interface{}

ToStringMap turns the Keys of a map[interface{}]interface{} into string keys will be transformed using fmt.Sprintf

func Values

func Values[K comparable, V any, M ~map[K]V](m M) []V

Values returns all values of the map

Types

This section is empty.

Jump to

Keyboard shortcuts

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