Documentation ¶
Index ¶
- func CleanUpMetadataFile(targetDir string) error
- func MapToJson(m map[string]interface{}) string
- func MapToJsonUnindented(m map[string]interface{}) string
- func ReadJson(filename string, v interface{}) error
- func ReadJsonOptsFile(targetDir string) (map[string]interface{}, error)
- func WriteJson(filename string, v interface{}, perm os.FileMode) error
- func WriteJsonOptsFile(targetDir string, opts map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanUpMetadataFile ¶
func MapToJson ¶
MapToJson converts the specified map object to indented JSON. It panics in case if the map cannot be converted.
func MapToJsonUnindented ¶
MapToJson converts the specified map object to unindented JSON. It panics in case if the map cannot be converted.
func ReadJsonOptsFile ¶
func WriteJsonOptsFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.