utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepMerge

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

DeepMerge recursively merges src into dst If a key exists in both maps and both values are maps, it recursively merges them Otherwise, src values override dst values

func PrintJSON

func PrintJSON(data map[interface{}]interface{}) error

PrintJSON prints a map as JSON

func PrintYAMLBytes

func PrintYAMLBytes(data []byte) error

PrintYAMLBytes prints YAML from byte slice

func ToInterface

func ToInterface(inputMap map[string]interface{}) map[interface{}]interface{}

ToInterface converts a map[string]interface{} to a map[interface{}]interface{}.

func UnmarshalJSONorYAMLToInterface

func UnmarshalJSONorYAMLToInterface(data []byte, result *map[interface{}]interface{}) error

UnmarshalJSONorYAMLToInterface unmarshals data to interface map

Types

This section is empty.

Jump to

Keyboard shortcuts

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