Documentation ¶
Overview ¶
Package flagconfig provides a flag to specifiy a config file which will in turn be used to read unspecified flag values.
Default configuration file location is $HOME/.config/{executable_name}/config or /etc/conf.d/{executable_name}
Lines in the configuration file should be in flag-name=value format. Comments are allowed in the configuration file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse()
Parse parses the default configuration file and populates the global flags based on the contents of the file.
func ParseFile ¶
ParseFile parses the specified configuration file and populates the flags in the flag.FlagSet based on the contents of the file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.