Documentation ¶
Index ¶
- func ConvertJSONArrayToYAML(jsonContent string) (string, error)
- func ConvertJSONMapToYAML(jsonContent string) (string, error)
- func ConvertYAMLArrayToJSON(yamlContent string) (string, error)
- func ConvertYAMLMapToJSON(yamlContent string) (string, error)
- func GarbageCollectTemporaryFiles(tempDir string, mask string, n int) ([]string, error)
- func LoadJSONFile(path string, target interface{}) error
- func LoadYAMLFile(path string, target interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertJSONArrayToYAML ¶
func ConvertJSONMapToYAML ¶
func ConvertYAMLArrayToJSON ¶
func ConvertYAMLMapToJSON ¶
func GarbageCollectTemporaryFiles ¶ added in v0.4.25
GarbageCollectTemporaryFiles deletes the oldest files in a directory based on a given mask, leaving only 'n' newest files. It returns a slice of paths of the deleted files. It requires read and write permissions on the directory. If it encounters a file that it cannot delete, it will stop and return the files it has deleted so far along with the error.
func LoadJSONFile ¶
func LoadYAMLFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.