maps

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package maps contains methods to operate maps of all kinds

Package maps contains methods to operate maps of all kinds

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeMap

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

MergeMap merges the right map into left map overwritting any matching keys

func MergeMapMap

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

MergeMapMap merges the right map into left map overwritting any matching keys

func MergeMapSlice

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

MergeMapSlice merges the right map into left map overwritting any matching keys

Types

type KeyValue

type KeyValue struct {
	// Key of the map
	Key string
	// Value of string map
	Value string
}

KeyValue a key/value pair just like a map[string]string

func SortedKeyValue

func SortedKeyValue(dict map[string]string) (items []KeyValue)

SortedKeyValue returns a list of key values sorted by key

Jump to

Keyboard shortcuts

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