metadata

package
v0.0.0-...-cdf4e82 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUpMetadataFile

func CleanUpMetadataFile(targetDir 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 connot 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 connot be converted.

func ReadJson

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

func ReadJsonOptsFile

func ReadJsonOptsFile(targetDir string) (map[string]interface{}, error)

func WriteJson

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

func WriteJsonOptsFile

func WriteJsonOptsFile(targetDir string, opts map[string]interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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