Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinWithDot ¶ added in v1.0.1
JoinWithDot used to join tokens using a dot or fullstop
func SplitByDot ¶ added in v1.0.1
SplitByDot split the supplied keys by dot or fullstop character
func Unflatten ¶
func Unflatten(m map[string]interface{}, tf TokenizerFunc) map[string]interface{}
Unflatten This function will unflatten a map with keys which are comprised of multiple tokens which are segmented by the tokenizer function.
Types ¶
type TokenizerFunc ¶
TokenizerFunc This function is used to tokenize the keys in the flattened data structure.
The following example uses strings.Split to tokenize based on .
func(k string) []string { return strings.Split(k, ".") }
Click to show internal directories.
Click to hide internal directories.