Discover Packages
github.com/forensicanalysis/forensicstore
goflatten
package
Version:
v0.18.2
Opens a new window with list of versions in this module.
Published: Jan 8, 2022
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package goflatten provides functions to flatten and unflatten Go maps.
func Flatten(nested map[string ]interface{}) (flatmap map[string ]interface{}, err error )
Flatten the map, it returns a map one level deep
regardless of how nested the original map was.
By default, the flatten has Delimiter = ".", and
no limitation of MaxDepth.
func Unflatten(flat map[string ]interface{}) (nested map[string ]interface{}, err error )
Unflatten the map, it returns a nested map of a map
By default, the flatten has Delimiter = ".".
Source Files
¶
Click to show internal directories.
Click to hide internal directories.