utils

package
v0.6.44 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMapInterfaceMapString

func ConvertMapInterfaceMapString(v interface{}) interface{}

ConvertMapInterfaceMapString converts map[interface{}]interface{} => map[string]interface{}

It will also convert []interface{} => []string

func FlattenMap

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

FlattenMap flattens the given map and writes the flattened map in the dest

func IsClosed

func IsClosed(ch chan struct{}) bool

func RecursiveCastMapStringInterfaceToMapStringInterface

func RecursiveCastMapStringInterfaceToMapStringInterface(in map[string]interface{}) map[string]interface{}

RecursiveCastMapStringInterfaceToMapStringInterface will convert a map[string]interface{} recursively => map[string]interface{}

func ToMapStringInterface

func ToMapStringInterface(mp interface{}) map[string]interface{}

ToMapStringInterface takes in data of type interface and returns a map[string]interface{} from that data

If the conversion fails then returns an empty map

Types

This section is empty.

Jump to

Keyboard shortcuts

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