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)
| 51 | // will be assigned to the returned location. |
| 52 | // Parsing uses strconv.ParseBool. |
| 53 | func 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 |