Predeclared type
Go bool type
Boolean type with two values, true and false. Its zero value is false. Go conditions require a boolean expression, not a numeric truthiness conversion. Example output: 'false true'.
Formal Syntax & Structure
go syntaxgo
boolWorking Example
Example Snippetgo
package main
import ( "fmt")
func main() { var ready bool fmt.Println(ready, !ready)}