convert

package
v1.4.27 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 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 []any) ([]map[any]any, error)

JSONSliceOfInterfaceToSliceOfMaps takes a slice of JSON strings as input and returns a slice of map[any]any

func JSONToMapOfInterfaces

func JSONToMapOfInterfaces(input string) (map[string]any, error)

JSONToMapOfInterfaces takes a JSON string as input and returns a map[string]any

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[any]any) map[string]any

MapsOfInterfacesToMapsOfStrings takes map[any]any and returns map[string]any

func MapsOfStringsToMapsOfInterfaces

func MapsOfStringsToMapsOfInterfaces(input map[string]any) map[any]any

MapsOfStringsToMapsOfInterfaces takes map[string]any and returns map[any]any

func SliceOfInterfacesToSliceOfStrings

func SliceOfInterfacesToSliceOfStrings(input []any) ([]string, error)

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

func SliceOfMapsOfStringsToSliceOfMapsOfInterfaces

func SliceOfMapsOfStringsToSliceOfMapsOfInterfaces(input []map[string]any) []map[any]any

SliceOfMapsOfStringsToSliceOfMapsOfInterfaces takes a slice of map[string]any and returns a slice of map[any]any

func YAMLSliceOfInterfaceToSliceOfMaps

func YAMLSliceOfInterfaceToSliceOfMaps(input []any) ([]map[any]any, error)

YAMLSliceOfInterfaceToSliceOfMaps takes a slice of interfaces as input and returns a slice of map[any]any

func YAMLToMapOfInterfaces

func YAMLToMapOfInterfaces(input string) (map[any]any, error)

YAMLToMapOfInterfaces takes a YAML string as input and returns a map[any]any

Types

This section is empty.

Jump to

Keyboard shortcuts

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