Golang
Basics Types
Type | Set of Values | Values |
---|---|---|
bool | boolean | true/false |
string | array of characters | needs to be inside "" |
int | integers | 32 or 64 bit integer |
int8 | 8-bit integers | [ -128, 128 ] |
int16 | 16-bit integers | [ -32768, 32767] |
int32 | 32-bit integers | [ -2147483648, 2147483647] |
int64 | 64-bit integers | [ -9223372036854775808, 9223372036854775807 ] |
uint8 | 8-bit unsigned integers | [ 0, 255 ] |
uint16 | 16-bit unsigned integers | [ 0, 65535 ] |
uint32 | 32-bit unsigned integers | [ 0, 4294967295 ] |
uint64 | 64-bit unsigned integers | [ 0, 18446744073709551615 ] |
float32 | 32-bit float | |
float64 | 64-bit float | |
complex64 | 32-bit float with real and imaginary parts | |
complex128 | 64-bit float with real and imaginary parts | |
byte | sets of bits | alias for uint8 |
rune | Unicode characters | alias for int32 |