Golang

Basics Types

TypeSet of ValuesValues
boolbooleantrue/false
stringarray of charactersneeds to be inside ""
intintegers32 or 64 bit integer
int88-bit integers[ -128, 128 ]
int1616-bit integers[ -32768, 32767]
int3232-bit integers[ -2147483648, 2147483647]
int6464-bit integers[ -9223372036854775808, 9223372036854775807 ]
uint88-bit unsigned integers[ 0, 255 ]
uint1616-bit unsigned integers[ 0, 65535 ]
uint3232-bit unsigned integers[ 0, 4294967295 ]
uint6464-bit unsigned integers[ 0, 18446744073709551615 ]
float3232-bit float
float6464-bit float
complex6432-bit float with real and imaginary parts
complex12864-bit float with real and imaginary parts
bytesets of bitsalias for uint8
runeUnicode charactersalias for int32

On this page

No Headings