config

package
v0.0.0-...-8ceafa1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFileExists

func ConfigFileExists(configFolderName string, configFileNamestring string) (string, error)

Checks for config file. Will return a file path. Will return error if does not exist.

func ConfigFolderExists

func ConfigFolderExists(configFolderName string) (string, error)

If folder exists, return folderpath and error.

func CreateConfigFolder

func CreateConfigFolder(configFolderName string) (string, error)

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 GetConfigFilePath(configFolderName string, configFileNamestring string) string

func GetConfigFolderPath

func GetConfigFolderPath(configFolderName string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL