Documentation ¶
Overview ¶
Package config is used to configure the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ParseAndLoadSource func(app string)
ParseAndLoadSource is used to parse and load the options from some sources.
Default: use "flag" to parse and load the options from the CLI arguments.
Functions ¶
func InitConfig ¶
func InitConfig(app, version string, opts ...gconf.Opt)
InitConfig initializes the configuration, which will set the version, register the options, parse the CLI arguments with "flag", load the "flag", "env" and "file" configuration sources.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.