2020-05-11 01:14:30 +00:00
|
|
|
package option
|
|
|
|
|
|
|
|
// Bool is the option type for bool.
|
|
|
|
type Bool *bool
|
|
|
|
|
|
|
|
var (
|
|
|
|
True = newBool(true)
|
|
|
|
False = newBool(false)
|
|
|
|
)
|
|
|
|
|
|
|
|
// newBool creates a new Bool with the value of the passed bool.
|
2020-05-11 03:24:59 +00:00
|
|
|
func newBool(b bool) Bool { return &b }
|