PS 参考博文,致谢 :https://www.liwenzhou.com/posts/Go/01_var_and_const/
_
(下划线)组成,并且只能以字母和_开头。 举几个例子:abc, _, _123, a123
Go语言中有25个关键字:
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
Constants: true false iota nil
Types: int int8 int16 int32 int64
uint uint8 uint16 uint32 uint64 uintptr
float32 float64 complex128 complex64
bool byte rune string error
Functions: make len cap new append copy close delete
complex real imag
panic recover
Go语言中的每一个变量都有自己的类型,并且变量必须经过声明才能开始使用。
原文:https://www.cnblogs.com/dai-zhe/p/14824847.html