Documentation ¶
Index ¶
- func CopyFile(src, dst string) error
- func CreateDirectory(dirName string) bool
- func FileExists(fileName string) bool
- func PrepareString(value string) string
- func RemoveBracketsContent(value string) string
- func RemoveDirectory(dirName string) bool
- func RemoveFile(fileName string) bool
- func SetupLogs(logsLevel string, timestampFormat string, fullTimestamp bool)
- func SetupViper(path string)
- func ToSnakeCase(value string) string
- func TrimAllSpaces(value string) string
- func UintInSlice(elem uint, list []uint) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirectory ¶
CreateDirectory creates a directory tree. Returns true if could create it and false in any other case
func FileExists ¶
FileExists check if the file with name as argument exists
func PrepareString ¶
PrepareString removes special chars, words between brackets, alternative text and covert the string to lower case
func RemoveBracketsContent ¶
RemoveBracketsContent returns the string without brackets and without the content inside of them
func RemoveDirectory ¶
RemoveDirectory removes a directory tree. Returns true if could remove it and false if any errors were found
func RemoveFile ¶
RemoveFile removes a file. Returns true if coult remove it and false if any errors were found
func SetupViper ¶
func SetupViper(path string)
SetupViper initialize viper with the config file in the path passed as parameter
func ToSnakeCase ¶
ToSnakeCase returns the string in snake case format
func TrimAllSpaces ¶
TrimAllSpaces returns the string passed as argument without spaces and in lower key
func UintInSlice ¶
Types ¶
This section is empty.