Go Booleans: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:


The boolean literals are [[Go Concepts - Lexical Structure#Pre-Declared_Identifiers|pre-declared constants]] <tt>true</tt> and <tt>false</tt>.
The boolean literals are [[Go Concepts - Lexical Structure#Pre-Declared_Identifiers|pre-declared constants]] <tt>true</tt> and <tt>false</tt>.
=Boolean Operators and Functions=
* <tt>[[Go Concepts - Operators#|&&]]</tt>
* <tt>||</tt>
* <tt>!</tt>

Revision as of 01:54, 23 March 2016

Internal

Overview

Booleans are designated by pre-declared type identifier bool.

Boolean Literals

The boolean literals are pre-declared constants true and false.

Boolean Operators and Functions