Discover Packages
github.com/facebookgo/flagconfig
package
module
Version:
v0.0.0-...-22cbba9
Opens a new window with list of versions in this module.
Published: Jul 19, 2016
License: BSD-3-Clause
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 5 modules, 5 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
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.
Parse parses the default configuration file and populates the global flags
based on the contents of the file.
ParseFile parses the specified configuration file and populates the flags
in the flag.FlagSet based on the contents of the file.
ParseSet parses the default configuraiton file and populates the flags in
the flag.FlagSet based on the contents of the file.
Usage prints the usage information for the application including all flags
and their values after parsing the configuration file
Source Files
¶
Click to show internal directories.
Click to hide internal directories.