Go Integers

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

Integers are designated by the following pre-declared type identifiers:

  • Unsigned integers: uint8 (or byte), uint16, uint32 (or rune), uint64.
  • Signed integers: int8, int16, int32, int64.
  • Machine-dependent integers: uint, int and uintptr.

int should be the default.

Integer Literals