exmaps

package
v0.4.43 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyMapContains

func KeyMapContains(keysMap map[string]struct{}, key string) bool

func Keys added in v0.4.43

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

Keys returns a slice containing the keys present in the map.

func MapFromKeys

func MapFromKeys(keys []string) map[string]struct{}

func Values added in v0.4.43

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

Values returns a slice containing the values corresponding to the keys present in 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