下载安装脚本

wget https://storage.googleapis.com/golang/getgo/installer_linux

添加执行权限:

chmod +x installer_linux
安装

刷新环境变量:

source ~/.bash_profile