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 ¶ added in v1.4.0
DeleteDataString deletes a file in the data home directory
func ReadDataString ¶ added in v1.4.0
ReadDataString reads a string from a file in the data home directory
func SaveDataString ¶ added in v1.4.0
SaveDataString saves a string to a file in the data home directory
func SetConfigHome ¶ added in v1.4.0
SetConfigHome sets the configuration home directory - useful for testing
func SetDataHome ¶ added in v1.4.0
SetDataHome sets the data home directory - useful for testing
func UnsetConfigHome ¶ added in v1.4.0
func UnsetConfigHome() error
UnsetConfigHome unsets the configuration home directory returning to the default value
func UnsetDataHome ¶ added in v1.4.0
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.