go关键字保留字

Go代码中使用的25个关键字保留字:

注释和python相似

 

break default func interface select
case defer go map struct
chan else goto package switch
const fallthrough if range type
continue for import return var

36 个预定义标识符:

append bool byte cap close complex complex64 complex128 uint16
copy false float32 float64 imag int int8 int16 uint32
int32 int64 iota len make new nil panic uint64
print println real recover string true uint uint8 uintptr

 

 

 

posted @ 2019-11-28 15:12  zjyss  阅读(275)  评论(0编辑  收藏  举报