Install go on ubuntu

Copy
VERSION="1.18.8"
# download go binary files
wget https://golang.org/dl/go${VERSION}.linux-amd64.tar.gz -O go${VERSION}.linux-amd64.tar.gz

# extract from tar.gz file, and move go binary to /usr/local
tar zxvf go${VERSION}.linux-amd64.tar.gz  && sudo mv go /usr/local/

# setup go PATH env
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
source ~/.bashrc

# check go version
go version