Documentation
¶
Overview ¶
Package mapfunc contains methods for manipulating maps.
Package mapfunc contains methods for manipulating maps.
Index ¶
- func KeysIntBool(m map[int]bool) []int
- func KeysIntFloat(m map[int]float64) []int
- func KeysStringBool(m map[string]bool) []string
- func KeysStringFloat(m map[string]float64) []string
- func KeysStringString(m map[string]string) []string
- func RandomKeyStringString(m map[string]string) string
- func ReverseStringString(m map[string]string) map[string]string
- func ValuesStringString(m map[string]string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeysIntBool ¶
KeysIntBool returns the keys of a map[int]float64.
func KeysIntFloat ¶
KeysIntFloat returns the keys of a map[int]float64.
func KeysStringBool ¶
KeysStringBool returns the keys of a map[string]bool.
func KeysStringFloat ¶
KeysStringFloat returns the keys of a map[string]float64.
func KeysStringString ¶
KeysStringString returns the keys of a map[string]string.
func RandomKeyStringString ¶
RandomKeyStringString gets a random key from a map[string]string
func ReverseStringString ¶
ReverseStringString reverse the keys and values of a map[string]string
func ValuesStringString ¶
ValuesStringString returns the values from a map[string]string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.