1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-09 16:35:12 +00:00
arikawa/utils/json/nullable/bool.go

15 lines
238 B
Go
Raw Normal View History

2020-05-11 02:30:34 +00:00
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
}