Ubuntu 18.04 安装配置 go 语言
1、下载
cd /usr/local
sudo mkdir go
cd go
sudo tar -zxvf ~/Downloads/go1.15.linux-amd64.tar.gz
2、配置环境变量
gedit ./.bashrc
export GOPATH=$HOME/go
export GOROOT=/usr/local/go/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
source ./.bashrc
go version