mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-08 16:04:41 +00:00
15 lines
232 B
Go
15 lines
232 B
Go
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.
|
|
func newBool(b bool) Bool {
|
|
return &b
|
|
}
|