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 = truevar b bool = falsevar c bool // set to false due to zero value
Booleans work the same way in Go as they do in JavaScript and TypeScript. They can be either true
or false
.
var a bool = truevar b bool = falsevar c bool // set to false due to zero value
true
and false
as types