convert

package
v1.4.20 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONSliceOfInterfaceToSliceOfMaps

func JSONSliceOfInterfaceToSliceOfMaps(input []interface{}) ([]map[interface{}]interface{}, error)

JSONSliceOfInterfaceToSliceOfMaps takes a slice of JSON strings as input and returns a slice of map[interface{}]interface{}

func JSONToMapOfInterfaces

func JSONToMapOfInterfaces(input string) (map[string]interface{}, error)

JSONToMapOfInterfaces takes a JSON string as input and returns a map[string]interface{}

func MakeId

func MakeId(s []byte) string

MakeId takes a byte representation of a resource and returns a stable string ID for it.

func MapsOfInterfacesToMapsOfStrings

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

MapsOfInterfacesToMapsOfStrings takes map[interface{}]interface{} and returns map[string]interface{}

func MapsOfStringsToMapsOfInterfaces

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

MapsOfStringsToMapsOfInterfaces takes map[string]interface{} and returns map[interface{}]interface{}

func SliceOfInterfacesToSliceOfStrings

func SliceOfInterfacesToSliceOfStrings(input []interface{}) ([]string, error)

SliceOfInterfacesToSliceOfStrings takes a slice of interfaces and converts it to a slice of strings

func SliceOfMapsOfStringsToSliceOfMapsOfInterfaces

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

SliceOfMapsOfStringsToSliceOfMapsOfInterfaces takes a slice of map[string]interface{} and returns a slice of map[interface{}]interface{}

func YAMLSliceOfInterfaceToSliceOfMaps

func YAMLSliceOfInterfaceToSliceOfMaps(input []interface{}) ([]map[interface{}]interface{}, error)

YAMLSliceOfInterfaceToSliceOfMaps takes a slice of interfaces as input and returns a slice of map[interface{}]interface{}

func YAMLToMapOfInterfaces

func YAMLToMapOfInterfaces(input string) (map[interface{}]interface{}, error)

YAMLToMapOfInterfaces takes a YAML string as input and returns a map[interface{}]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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