Documentation
¶
Overview ¶
Package envvar is the one way the CLI reads environment variables. Every variable the CLI reads goes through Get, Lookup, Bool or True, so tests can replace the whole environment with a map (see envvartest.Fake). The one exception is passing the whole environment to a child process (os.Environ), which is not a read.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
Bool reads key as a boolean: 1/true/yes/on or 0/false/no/off, case-insensitively. ok is false for any other value, including unset or "".
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package envvartest replaces the environment envvar reads in tests.
|
Package envvartest replaces the environment envvar reads in tests. |