Documentation ¶
Overview ¶
Library for reading and parsing config files.
Index ¶
- func LoadConfigFromFile(appName string, object interface{}) error
- func LoadConfigFromJson(appName string, object interface{}) error
- func LoadFromFile(filePath string, object interface{}) error
- func LoadFromJson(filePath string, object interface{}) error
- func SaveConfigToFile(appName string, object interface{}) error
- func SaveToFile(filePath string, object interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFromFile ¶
Loads data from the gob file in the config directory: $HOME/.config/{appName}.gob
func LoadConfigFromJson ¶
Loads data from the JSON file in the config directory: $HOME/.config/{appName}.json
func LoadFromFile ¶
Loads data from the gob file.
func LoadFromJson ¶
Loads data from the JSON file.
func SaveConfigToFile ¶
Saves data from the gob file in the config directory: $HOME/.config/{appName}.gob
func SaveToFile ¶
Saves data to the gob file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.