Boolean type
A boolean type represents the set of Boolean truth values denoted by the predeclared constants true and false. The predeclared boolean type is bool.
Source: (example.go)
package main
import "fmt"
func main() {
var b1 bool = true
fmt.Println(b1)
// shorthand
b2 := false
fmt.Println(b2)
}
Output:
$ go run example.go
true
false