Integers

u: unsigned (positive only). Range goes from 0 to the bytes of type.

int8 is −128 to 127

uint8 is 0 to 255

int, int8, int16, int32, int64 // Int depend on OS architecture (32, 64 bits)
uint, uint8, uint16, uint32, uint64 // uint depend on OS architecture (32, 64 bits) 
uintptr // used only for low-level programming, such as at the boundary of a Go program with a C library
byte // alias for uint8. It's an emphasizes that the value is a piece of raw data
rune // alias for int32
complex64 complex128

int is not the same type as int32 and an explicit conversion is required to use int values where an int32 is needed

results matching ""

    No results matching ""