标识符
1、由字母、数字、下划线组成
2、第一个字符必须是字母
3、标识符先声明后使用
包中的标识符
可被导出的条件:
标识符必须以大写字符开头
预定义标识符
1、基本数据类型名称
2、接口类型
error
3、常量
true false iota
4、内建函数
append cap close complex copy make panic recover
delete
new
print println
real
imag //获取复数的实部、虚部
len //获取长度:字符串
关键字
1、程序声明
import package
2、程序实体声明和定义
var const func interface struct type chan map
3、程序流程控制
go goto select fallthrough range
if else
switch case default
for
break continue
return
defer