Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Expand ¶
Expand takes a map and a key (prefix) and expands that value into a more complex structure. This is the reverse of the Flatten operation but if origin map include slice, Expand(Flatten(map)) will lose the slice info, slice will treat as map with number key.
func Flatten ¶
Flatten takes a structure and turns into a flat map[string]string.
Within the "thing" parameter, only primitive values are allowed. Structs are not supported. Therefore, it can only be slices, maps, primitives, and any combination of those together.
See the tests for examples of what inputs are turned into.
func FlattenSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.