Using a fresh Ubuntu 18.04 (latest LTS) install:
# Install prerequisites
sudo apt update
sudo apt install -y bison binutils gcc make
# Install Go using gvm
cd $HOME
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
source $HOME/.gvm/scripts/gvm
gvm install go1.13 -B
gvm use go1.13 --default
You may want to install the golint and goimports tools:
go get -u golang.org/x/tools/cmd/goimports
go get -u golang.org/x/lint/golint