MCPcopy Index your code
hub / github.com/chain/Core / Bool

Function Bool

env/env.go:53–57  ·  view source on GitHub ↗

Bool returns a new bool pointer. When Parse is called, env var name will be parsed and the resulting value will be assigned to the returned location. Parsing uses strconv.ParseBool.

(name string, value bool)

Source from the content-addressed store, hash-verified

51// will be assigned to the returned location.
52// Parsing uses strconv.ParseBool.
53func Bool(name string, value bool) *bool {
54 p := new(bool)
55 BoolVar(p, name, value)
56 return p
57}
58
59// BoolVar defines a bool var with the specified
60// name and default value. The argument p points

Callers 1

TestBoolFunction · 0.70

Calls 1

BoolVarFunction · 0.85

Tested by 1

TestBoolFunction · 0.56