Documentation ¶
Index ¶
- func Set(conf Config, name string, valueA interface{}) error
- func SetIfNot(conf Config, name string, value, not interface{}) (bool, error)
- func UpdateFromFile(conf Config, path string) error
- func UpdateFromReader(conf Config, reader io.Reader) error
- func UpdateFromString(conf Config, confOption string) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetIfNot ¶
SetIfNot sets the given option on the given configuration file if and only if it is not equal to the last parameter.
func UpdateFromFile ¶
UpdateFromFile automatically reads a file and updates the configuration object from its contents.
func UpdateFromReader ¶
UpdateFromReader takes a reader and updates the configuration object from its contents.
func UpdateFromString ¶
UpdateFromString updates the given config from the single-line configuration string.
Types ¶
Click to show internal directories.
Click to hide internal directories.