Go suggest change

Basic types

Go supports all the basic types that you would expect from a statically typed language:

booltrue, false
int, int8, uint8, int16, uint16, int32, uint32, int64, uint6438
float64, float32 (floating-point numbers)23.5, 2e-12
byte (alias of uint8, a char)'a'
rune (alias of int32, a unicode character)'p'
string"foo", `bar`
constantsconst a = 8
structstype Foo struct {}
slice (variable-sized vector)[]int = {1, -3, 4}
array (fixed-size vector)[2]int = {2, -3}
map (known as dictionary or hash table in other languages)map[string]int

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents