Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComposeValue ¶
func ComposeValue(val interface{}, p path) map[string]interface{}
ComposeValue returns a map containing the structure of `path`, with `val` as value.
The value is always transformed into a slice unless it is already one. For example, the call
ComposeValue(42, "foo.bar")
yields the following result:
map[string]interface{}{ "foo": map[string]interface{}{ "bar": []int{42}, }, }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.