Documentation ¶
Overview ¶
Package envflag is a simple library for associating environment variables with flags.
If using the default flag.CommandLine FlagSet, just call envflag.Parse() instead of flag.Parse().
Assign environment variables to flags using the Map type:
var m := envflag.Map{ "MY_ENV_VAR": "my-flag" }
If the flag and the environment variable is set the flag takes precidence.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.