Skip to content

Boolean

This content is for v0.7. Switch to the latest version for up-to-date documentation.

v.Is(v.Bool(true, "active").True())
v.Is(v.Bool(false, "active").Not().False())

Pointer variant:

var b *bool
v.Is(v.BoolP(b, "active").Nil())