goflatten

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package goflatten provides functions to flatten and unflatten Go maps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flatten

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

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 = ".".

Types

This section is empty.

Jump to

Keyboard shortcuts

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