安装go
brew install go
测试看安装成功没, 在终端输入go, 显示如下就说明你安装成功了
我们打开.bashrc 或 .bash_profile都行, 在里面添加两条命令
保存后在 source .bashrc 或 source .bash_profile