util

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: MIT Imports: 0 Imported by: 0

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.

Jump to

Keyboard shortcuts

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