我的设备是mac,安装最简单的办法就是去https://golang.org/dl/ 下载pkg文件双击安装完事
然后配置环境.设置path可以找到go
接着写hello world测试. 验证环境ok