maps

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromString added in v1.6.1

func FromString(keyValuePairs string) map[string]string

FromString Converts a string with comma separated key-vaults to a map[string]string

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

func ToString added in v1.6.1

func ToString(keyValues map[string]string) string

ToString Converts map[string]string to a string with comma separated key-vaults, spaces are trimmed

Types

This section is empty.

Jump to

Keyboard shortcuts

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