Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config wraps viper.Viper
func InitConfig ¶
InitConfig load config file. It try loading config in this order:
- path (specify `-c` option)
- $XDG_CONFIG_HOME/legsc/conf.toml
- xdg_config_dir/legsc/conf.toml (where xdg_config_dir is in $XDG_CONFIG_DIRS)
- ~/.config/legsc/conf.toml
- ~/.legsc/conf.toml
Click to show internal directories.
Click to hide internal directories.