nirmata/go-envflag
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Define flags via command-line and / or environment variables. This library allows definition of command line flags that use environment variable values, when available, as defaults. This is especially useful for containerized applications. _______________________________________________________ Usage example: import "envflag" var ( // flagB will be set to 'myflag' if specified on the command line, or // MY_ENV_VAR if specified as an environment variable, or defaultValue // if neither myflag or MY_ENV_VAR are specified. flagB = envflag.Bool("myflag", "MY_ENV_VAR", defaultValue, "a boolean flag") ) envflag.Parse()
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published