maputil

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: MIT Imports: 2 Imported by: 36

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetByPath

func GetByPath(key string, mp map[string]interface{}) (val interface{}, ok bool)

GetByPath get value from a map[string]interface{}. eg "top" "top.sub"

func KeyToLower

func KeyToLower(src map[string]string) map[string]string

KeyToLower convert keys to lower case.

func Keys

func Keys(mp interface{}) (keys []string)

Keys get all keys of the given map.

func MergeStringMap

func MergeStringMap(src, dst map[string]string, ignoreCase bool) map[string]string

MergeStringMap simple merge two string map. merge src to dst map

func Values

func Values(mp interface{}) (values []interface{})

Values get all values from the given map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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