golang

04-Go语言关键字和标识符-指趣学院

2018-09-16  本文已影响268人  极客江南

关键字


C语言关键字和Go语言关键字对比

1 2 3 4 5 6 7 8
if else switch case default break return goto
do while for continue typedef struct enum union
char short int long float double void sizeof
signed unsigned const auto register static extern volatile
1 2 3 4 5 6 7 8
if else switch case default break return goto
fallthrough for continue type struct var const map
func interface range import package defer go select
chan

内建常量
true false iota nil
內建类型
int int8 int16 int32
int64 uint uint8 uint16
uint32 uint64 uintptr float32
float64 complex64 complex128 bool
byte rune string error
內建函数
make len cap new
append copy delete real
imag panic recover complex

标识符



上一篇 下一篇

猜你喜欢

热点阅读