// IsBoolFlag returns true if the flag.Value implementation has an IsBoolFlag() bool
// method returning true.
// This is used by the flag package commandline-parser for flags that can be supplied
//  without "=value" text
IsBoolFlag returns true if the flag.Value implementation has an IsBoolFlag() bool
method returning true.
This is used by the flag package commandline-parser for flags that can be supplied
without "=value" text
// IsBoolFlag returns true if the flag . Value implementation has an IsBoolFlag () bool // method returning true . // This is used by the flag package commandline - parser for flags that can be supplied // without " = value " text
func IsBoolFlag(v flag.Value) bool {
	type boolFlag interface {
		flag.Value
		IsBoolFlag() bool
	}
	if bv, ok := v.(boolFlag); ok {
		return bv.IsBoolFlag()
	}
	return false
}
func IsBoolFlag ( v flag . Value ) bool { type boolFlag interface { flag . Value IsBoolFlag ( ) bool } if bv , ok := v . ( boolFlag ) ; ok { return bv . IsBoolFlag ( ) } return false }
IsBoolFlag returns true if the flag.Value implementation has an IsBoolFlag() bool
method returning true.
IsBoolFlag returns true if the flag . Value implementation has an IsBoolFlag () bool method returning true .