2.2 Go variable type

Built-in types Value type:

bool                                                        布尔类型
int(32 or 64), int8, int16, int32, int64                    整数类型
uint(32 or 64), uint8(byte), uint16, uint32, uint64            无符号整型
float32, float64                                            浮点型
string                                                        string
array                                                       固定长度的数组
struct                                                        结构体

:( pointer types reference types)

slice       切片
map         映射
chan        管道
interface    接口

Guess you like

Origin www.cnblogs.com/open-yang/p/11256701.html