Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigDirectory ¶ added in v0.1.15
func GetConfigDirectory() string
GetConfigDirectory returns the config directory for the executing user
Types ¶
type Config ¶ added in v0.1.18
type Config struct { // CfgFile config file path CfgName string // CfgName config name CfgFile string }
Config config options
func GetConfig ¶ added in v0.1.18
func GetConfig() *Config
GetConfig gets the global Config instance.
func (*Config) GetConfigDirectory ¶ added in v0.1.18
GetConfigDirectory returns the config directory for the executing user
func (*Config) InitConfig ¶ added in v0.1.18
func (config *Config) InitConfig()
InitConfig reads in config file and ENV variables if set.
func (*Config) SetConfigFile ¶ added in v0.1.18
SetConfigFile set config name
func (*Config) SetConfigName ¶ added in v0.1.18
SetConfigName set config name
Click to show internal directories.
Click to hide internal directories.