1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-09-19 08:29:08 +00:00
arikawa/utils/json/nullable/bool.go
2020-05-11 04:30:34 +02:00

15 lines
238 B
Go

package nullable
// Bool is a nullable version of a 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
}