1.去官网下载安装包
https://golang.google.cn/dl/
2.双击安装,一路默认安装即可。(默认安装路径为/usr/local)
3.安装完成后进入/go/bin目录下运行 ./go version
4.配置环境变量