Basic Types
bool // holds boolean values
string // holds string values
int int8 int16 int32 int64 // signed integer values
uint uint8 uint16 uint32 uint64 uintptr // unsigned integer values
byte // same as uint8
rune // alias for int32, represents a Unicode code point
float32 float64
complex64 complex128Type Conversions
var age int = 23
var agef float64 = float64(age)
var ageu uint = uint(agef)Last updated