Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Flatten ¶
Flatten takes a source, prefix and separator, and produces a flat map[string]interface{} from the source as a result, using prefix for the keys in the result. The src can be of type []interface{}, map[string]interface{} or valid JSON encoded string and []byte. If the source has bigger than 1 depth, the separator is used to produce keys in the result. If the source contains a conflicting key, it will be prefixed (again) in the result If the source is a slice, the result will have the index of the item as the key, as a string type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.