Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapToSlice ¶
func MapToSlice(m map[interface{}]interface{}) (s []interface{})
MapToSlice takes a map and converts it to a slice on the form of {key1, value1, key2, value2, .....}. Go's maps are intentionally random in order, thus the order of the slice will also be random, with the exception that keys will always come right before their corresponding values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.