2.2変数の型を行きます

ビルトインタイプの値の種類:

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

:(ポインタタイプがタイプを参照)

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

おすすめ

転載: www.cnblogs.com/open-yang/p/11256701.html
おすすめ