Documentation ¶
Index ¶
- func ConfigFileExists(configFolderName string, configFileNamestring string) (string, error)
- func ConfigFolderExists(configFolderName string) (string, error)
- func CreateConfigFolder(configFolderName string) (string, error)
- func GenerateYAMLConfigFile(configFolderPath string, configFileName string, configContents interface{}) error
- func GetConfigFilePath(configFolderName string, configFileNamestring string) string
- func GetConfigFolderPath(configFolderName string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFileExists ¶
Checks for config file. Will return a file path. Will return error if does not exist.
func ConfigFolderExists ¶
If folder exists, return folderpath and error.
func CreateConfigFolder ¶
Checks to see if folder exists. If not, creates folder. Returns path if sucessfull.
func GenerateYAMLConfigFile ¶
func GenerateYAMLConfigFile(configFolderPath string, configFileName string, configContents interface{}) error
Creates a yaml config file from a struct.
func GetConfigFilePath ¶
func GetConfigFolderPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.