MCPcopy
hub / github.com/spf13/pflag / newBoolValue

Function newBoolValue

bool.go:15–18  ·  view source on GitHub ↗
(val bool, p *bool)

Source from the content-addressed store, hash-verified

13type boolValue bool
14
15func newBoolValue(val bool, p *bool) *boolValue {
16 *p = val
17 return (*boolValue)(p)
18}
19
20func (b *boolValue) Set(s string) error {
21 v, err := strconv.ParseBool(s)

Callers 2

BoolVarPMethod · 0.85
BoolVarPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected