maps

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKeysFromByteMap

func GetKeysFromByteMap(mapData map[string][]byte) []string

GetKeysFromByteMap Returns keys. Deprecated - use GetKeysFromMap

func GetKeysFromMap added in v1.2.2

func GetKeysFromMap[T comparable, V any](mapData map[T]V) []T

GetKeysFromMap Returns keys

func GetKeysFromStringMap added in v1.1.6

func GetKeysFromStringMap(mapData map[string]string) []string

GetKeysFromStringMap Returns keys. Deprecated - use GetKeysFromMap

func MergeMaps added in v1.2.2

func MergeMaps[T comparable, V any](sources ...map[T]V) map[T]V

MergeMaps combines given maps into one map. Maps are merged from the beginning (index position 1) of the sources slice, and in case of a key conflict, values from the source map with the highest index position wins.

func MergeStringMaps deprecated

func MergeStringMaps(left, right map[string]string) map[string]string

MergeStringMaps Merge two maps, preferring the right over the left.

Deprecated: use MergeMaps

Types

This section is empty.

Jump to

Keyboard shortcuts

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