| --- | --- | ---- |
|---|---|---|
break | case | chan |
const | default | defer |
else | fallthrough | for |
func | go | goto |
if | import | interface |
map | package | range |
return | select | struct |
switch | type | var |
continue |
Go 语言的 36 个预定义标志符:
| ---- | ---- | ---- |
|---|---|---|
append | bool | byte |
cap | close | complex |
complex64 | complex128 | uint16 |
copy | false | float32 |
float64 | imag | int |
int8 | int16 | unit32 |
int32 | int64 | iota |
len | make | new |
nil | panic | unit64 |
print | println | real |
recover | string | true |
unit | unit8 | unitptr |