Documentation
¶
Overview ¶
Package plainmap provides primitives for convert types to plainmap. Plain map is one level key map. It contains keys like "lvl1.lvl2".
Index ¶
- func JSONToPlainStringMap(data []byte) (map[string]string, error)
- func Keys(plainmap map[string]string, keyPath string) (keys []string)
- func PlainStringMapToFormattedJSON(plainmap map[string]string) (json string, err error)
- func PlainStringMapToJSON(plainmap map[string]string) (json string, err error)
- func RecursiveMapToPlainMap(source map[string]interface{}) (map[string]interface{}, error)
- func Strain(data map[string]string, reg *regexp.Regexp) (result map[string]string, err error)
- func StringMapToRecursiveMap(source map[string]string) (out map[string]interface{}, err error)
- func ToRecursiveMap(source map[string]interface{}) (out map[string]interface{}, err error)
- type Any
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONToPlainStringMap ¶
JSONToPlainStringMap conavert json map to a plain map
func PlainStringMapToFormattedJSON ¶
PlainStringMapToFormattedJSON convert plain map (which all valueas are string) to formatted JSON
func PlainStringMapToJSON ¶
PlainStringMapToJSON convert plain map (which all valueas are string) to JSON
func RecursiveMapToPlainMap ¶
RecursiveMapToPlainMap conavert multi level map to a plain map
func StringMapToRecursiveMap ¶
StringMapToRecursiveMap conavert a plain string map to a multi level tree
func ToRecursiveMap ¶
ToRecursiveMap conavert a plain map to a multi level tree
Types ¶
Click to show internal directories.
Click to hide internal directories.