maputil

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapSSEqual

func MapSSEqual(a, b map[string]string) bool

func MapSSMerge

func MapSSMerge(first map[string]string, second map[string]string) map[string]string

func MapSSToKeyValues

func MapSSToKeyValues(kvs map[string]string, sep string) string

func MapSSValOrEmpty

func MapSSValOrEmpty(data map[string]string, key string) string

func StringKeys

func StringKeys(mp interface{}) []string

func StringKeysSorted

func StringKeysSorted(mp interface{}) []string

func StringKeysToLowerSorted

func StringKeysToLowerSorted(mp interface{}) []string

Types

type MapInt64Int64

type MapInt64Int64 map[int64]int64

func (MapInt64Int64) KeysSorted

func (m MapInt64Int64) KeysSorted() []int64

func (MapInt64Int64) ValuesSortedByKeys

func (m MapInt64Int64) ValuesSortedByKeys() []int64

type MapStringInt added in v1.1.0

type MapStringInt map[string]int

func (MapStringInt) AddKey added in v1.1.0

func (msi MapStringInt) AddKey(key string, val int)

func (MapStringInt) KeyValue added in v1.1.0

func (msi MapStringInt) KeyValue(key string, defaultValue int) int

func (MapStringInt) Keys added in v1.1.0

func (msi MapStringInt) Keys(sortKeys bool) []string

func (MapStringInt) MinMaxValues added in v1.1.0

func (msi MapStringInt) MinMaxValues() (int, int)

Jump to

Keyboard shortcuts

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