Category: DataTypes

Go Language Data Types

Numeric types
Numeric types are built in, will be familiar:

int

uint

float

int8

uint8 = byte

int16

uint16

int32

uint32

float32

int64

uint64

float64

Also uintptr, an integer big enough to store a pointer.
These are all distinct types; int is not int32 even on a 32-bit machine.
No implicit conversions.

Bool

The usual boolean type, bool, with values true and false (predefined constants).
The if statement etc. use boolean expressions.
Pointers and integers are [...]