flatten

package
v9.1.53+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flatten

func Flatten(nested map[string]interface{}) (map[string]interface{}, error)

Flatten generates a flat map from a nested one. It will lowecase all keys. Slices will be kept as slices, but it's maps will be flatten as well

func InterfaceToMap

func InterfaceToMap(obj interface{}) (map[string]interface{}, error)

InterfaceToMap converts a raw object into a key-value map pair if possible

Types

This section is empty.

Jump to

Keyboard shortcuts

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