metadata

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractStringSlice added in v1.10.0

func ExtractStringSlice(s interface{}) ([]string, error)

func MapToJson

func MapToJson(m map[string]interface{}) string

MapToJson converts the specified map object to indented JSON. It panics in case if the map cannot be converted.

func MapToJsonUnindented

func MapToJsonUnindented(m map[string]interface{}) string

MapToJson converts the specified map object to unindented JSON. It panics in case if the map cannot be converted.

func ReadJson

func ReadJson(filename string, v interface{}) error

func WriteJson

func WriteJson(filename string, v interface{}, perm os.FileMode) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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