Skip to content

boolean

Booleans work the same way in Go as they do in JavaScript and TypeScript. They can be either true or false.

var a bool = true
var b bool = false
var c bool // set to false due to zero value