Documentation
¶
Index ¶
- func DeleteDataString(relPath string) error
- func GetValue(key string) (string, error)
- func ReadDataString(relPath string) (string, error)
- func SaveDataString(relPath string, data string) error
- func SetConfigHome(configDir string) error
- func SetDataHome(dataHome string) error
- func SetValue(key, val string) error
- func UnsetConfigHome() error
- func UnsetDataHome() error
- func UnsetValue(key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDataString ¶
DeleteDataString deletes a file in the data home directory
func ReadDataString ¶
ReadDataString reads a string from a file in the data home directory
func SaveDataString ¶
SaveDataString saves a string to a file in the data home directory
func SetConfigHome ¶
SetConfigHome sets the configuration home directory - useful for testing
func SetDataHome ¶
SetDataHome sets the data home directory - useful for testing
func UnsetConfigHome ¶
func UnsetConfigHome() error
UnsetConfigHome unsets the configuration home directory returning to the default value
func UnsetDataHome ¶
func UnsetDataHome() error
UnsetDataHome unsets the data home directory returning to the default value
func UnsetValue ¶
UnsetValue removes the value of a config key from the config file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.