Documentation
¶
Overview ¶
flagpkg package provides some additional flag functions. (InverseFlagVar)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InverseBoolVar ¶
InverseBoolVar defines a flag that inverts a bool value.
For example, "--no-foo" would set foo to false.
Using --no-foo=false would set to true.
Omitting flag does not change the value at all.
If multiple flag.BoolVar and InverseBoolVar are used, the last one (on cmdline) wins.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.