Booleans

The bool type represents Boolean variables. Variables of bool type can have one of two values: true or false. The zero value for a bool is false.

var flag bool // no value assigned, set to false var isAwesome = true println(flag, isAwesome)

In go+, you can cast bool to number types.

println int(true) // 1 println float64(true) // 1 println complex64(true) // (1+0i)

Next example: Strings