maputil

package
v0.38.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CastKeysToStrings

func CastKeysToStrings(m map[interface{}]interface{}) (map[string]interface{}, error)

func DeepMerge

func DeepMerge(dest map[string]interface{}, src map[string]interface{})

func Flatten

func Flatten(input map[string]interface{}) map[string]interface{}

func FlattenAsString

func FlattenAsString(m map[string]interface{}) string

func GetStringAtPath

func GetStringAtPath(m map[string]interface{}, key string) (string, error)

func GetValueAtPath

func GetValueAtPath(cache map[string]interface{}, keyComponents []string) (interface{}, error)

func RecursivelyStringifyKeys added in v0.20.0

func RecursivelyStringifyKeys(m interface{}) (map[string]interface{}, error)

RecursivelyStringifyKeys helps converting any map object into a go-jsonscheme-friendly map

func SetValueAtPath

func SetValueAtPath(cache map[string]interface{}, keyComponents []string, value interface{}) error

func SliceUnique added in v0.33.0

func SliceUnique(s []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL