Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultFiles = []string{"config.conf", "~/config.conf", "../config.conf", "/config.conf"}
DefaultFiles searched after the ones specified in New, only if needed. Failure to find a valid config file will NOT generate an error.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { Get(key string) string Set(key, value string) // Save to the provided file name, including all Set operations done until now. Save(fileName string) error }
Config is the main interface to read or change the configuration keys. All keys are string. Default key value is empty string.
Click to show internal directories.
Click to hide internal directories.