data

package
v1.0.0-beta.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatJsonDataOrError

func FormatJsonDataOrError(jsonData string, err error) string

func FormatPrettyJson

func FormatPrettyJson(jsonData string) (string, error)

func YamlToString

func YamlToString(data interface{}) string

Converts YAML structure to string. Can be used for error formating. Ex.: fmt.Errorf("expected map at key 'global', got:\n%s", utils.YamlToString(globalValuesRaw))

!! Panic if data not converted to yaml to speed up detecting problems. !!

Types

This section is empty.

Jump to

Keyboard shortcuts

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