Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFile ¶
func LoadConfigFile(config *viper.Viper, configDir string, configName string, bindFlagSet *flag.FlagSet, loadDefault bool, dontParseFlags ...bool) error
LoadConfigFile fetches config values from a dir defined in "configDir" (or the current working dir if not set) into a given viper instance.
It automatically reads in a single config with name defined in "configName" and ending with: .json, .toml, .yaml or .yml (in this sequence) or the file extension in configName if available.
func PrintConfig ¶
PrintConfig prints the actual configuration, ignoreSettingsAtPrint are not shown
Types ¶
type BoolParameter ¶
type IntParameter ¶
type IntParameterConsumer ¶
type IntParameterConsumer = func(param *IntParameter)
type StringParameter ¶
type StringParameterConsumer ¶
type StringParameterConsumer = func(param *StringParameter)
Click to show internal directories.
Click to hide internal directories.