Boolean

In computer science, boolean, or logical, is a primitive data type that has two values, which can be thought of as 0 or 1, false or true.

Named boolean in honor of George Boole, who first defined a system of algebraic logic in the mid-19th century.

In Go, Boolean types are called as follows:


true // true
false // false
                        
boolean_type.go