toolman.org/flags/tristate (go): Package tristate provides a custom TriState flag for use with the alternate flag package github.com/spf13/pflag. A TriState value may take one of three forms: True, False or None and is most useful when you are, for instance, filtering records based on a current boolean value -- and you need all three possibilities (e.g. True, False and I Don't Care)  There are 8 separate functions provided for defining a TriState flag with some combination of the suffixes: "Var", "P", and "FS" each having the following meaning:  The "Var" and "P" suffixes follow the common pflag convention. The "FS" suffix is added to allow the use of alternate FlagSets.
Keywords: flags|go|golang|golang-library|pflag