converter

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expand added in v1.6.0

func Expand(flat map[string]interface{}) (nested map[string]interface{}, err error)

func Flatten

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

Flatten flattens the nested map examples: {a: {b: c}} => {a.b: c} {a: [{b: c}, [b: d]} => {a[0].b: c, a[1].b: d} {a: [b, c]} => {a[0]: b, a[1]: c}

func YamlToFlatMap

func YamlToFlatMap(data []byte) (map[string]interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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