helpers

package
v0.0.0-...-226c4f9 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErrAndPrintToStdErr

func CheckErrAndPrintToStdErr(err error, msg string)

func JSONStringToStructure

func JSONStringToStructure(jsonString string, structure interface{}) error

func KeyValueSplit

func KeyValueSplit(data string) (string, string, error)

func MapMerge

func MapMerge(dst, src interface{})

func ReadFromFile

func ReadFromFile(path string) (string, error)

read content from file path containing a dash will mean read from std in

func StringSliceKeyValueMap

func StringSliceKeyValueMap(data []string) (map[string]string, error)

func StringToArray

func StringToArray(data string) []string

func StructureToJSON

func StructureToJSON(structure interface{}) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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