Go Booleans

From NovaOrdis Knowledge Base
Revision as of 18:29, 12 April 2016 by Ovidiu (talk | contribs) (→‎Overview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Overview

Booleans are designated by pre-declared type identifier bool.

The values of the type take 1 byte (8 bits) of memory each.

Boolean Literals

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

Boolean Operators and Functions

  • and &&
  • or ||
  • not !