Documentation ¶
Overview ¶
Package autoflag provides automatic command line flags that tell gofigure where to read config files from.
Simply adding an import to:
"github.com/EverythingMe/gofigure/autoflag"
will result in the flags -conf and -confdir being added to your program's flags.
Then you can call autoflag.Load to either load the file in -conf or all files in -confdir.
Note that autoflag.Load will call flag.Parse if you haven't already parsed the flags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigDir string
ConfigDir keeps the value of the -confdir flag if it was set
View Source
var ConfigFile string
ConfigFile keeps the value of the -conf flag if it was set
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.