Documentation ¶
Overview ¶
Package ffo helps with file and folder operations
Index ¶
- func ExploreFolder(path string) (err error)
- func GetChild(basePath string, relativeFolderPath string) (childRelativePaths []string, err error)
- func JSONMarshalIndentPrint(v interface{})
- func MarshalYAMLWrite(path string, v interface{}) (err error)
- func ReadUnmarshalYAML(path string, settings interface{}) (err error)
- func ReadValidate(serviceName, settingsType, path string, settings interface{}) (err error)
- func YAMLMarshalPrint(v interface{})
- func ZipSource(zipFullPath string, zipFiles map[string]string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExploreFolder ¶
ExploreFolder list folder childs and their type
func GetChild ¶
GetChild returns the list to relative subfolders path for a folder + a relative path, crashes execution on errors
func JSONMarshalIndentPrint ¶
func JSONMarshalIndentPrint(v interface{})
JSONMarshalIndentPrint marshal with 4 spaces indent no prefix and fmt print
func MarshalYAMLWrite ¶
MarshalYAMLWrite Marshal an interface to YAML format and write the bytes to a given path
func ReadUnmarshalYAML ¶
ReadUnmarshalYAML Read bytes from a given path and unmarshal assuming YAML format
func ReadValidate ¶
ReadValidate reads a YAML config file to a struct and validate the struct
func YAMLMarshalPrint ¶ added in v0.4.0
func YAMLMarshalPrint(v interface{})
YAMLMarshalPrint marshal fmt print
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.