Documentation ¶
Index ¶
- func DeleteDir(dirPath string) error
- func DeleteFile(filePath string) error
- func DirExists(filename string) bool
- func FileExists(filePath string) bool
- func GetConfigFilePath() string
- func GetDirTree(dirPath string, excludedList []string) (string, error)
- func IsDirEmpty(name string) (bool, error)
- func IsLogInDebug() bool
- func ReadConfig(configPath string, result interface{}) error
- func RegexProcessString(regex *regexp.Regexp, str string) (map[string]string, error)
- func SetUpLogs(out io.Writer, level string) error
- func SetupViperHomeConfig(configFile, configName, extension, envPrefix string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDir ¶
*
- Delete a directory with contents
- https://stackoverflow.com/questions/33450980/how-to-remove-all-contents-of-a-directory-using-golang/33451503#33451503
func FileExists ¶
fileExists checks if a file exists and is not a directory before we try using it to prevent further errors.
func GetConfigFilePath ¶
func GetConfigFilePath() string
*
- The path to the file used for configuration
func IsDirEmpty ¶
*
- If the dir is empty or not
- https://stackoverflow.com/questions/30697324/how-to-check-if-directory-on-path-is-empty/30708914#30708914
func IsLogInDebug ¶
func IsLogInDebug() bool
*
- Verify if the system is configured with a given level
func ReadConfig ¶
*
- Read the configuration and update the reference of a provided struct represented by the given config path
func RegexProcessString ¶
func SetupViperHomeConfig ¶
func SetupViperHomeConfig(configFile, configName, extension, envPrefix string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.