Documentation ¶
Overview ¶
Package ffo helps with file and folder operations
Index ¶
- func CheckPath(path string)
- func ExploreFolder(path string) (err error)
- func GetChild(basePath string, relativeFolderPath string) []string
- 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 ZipSource(zipFullPath string, zipFiles map[string]string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPath ¶
func CheckPath(path string)
CheckPath crashes execution when the path is not found or when an other error occurs
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.