Install Golang 1.9:
wget https://storage.googleapis.com/golang/go1.9.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.9.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin # put into ~/.profile
If already installed old golang with apt-get:
sudo apt remove golang
sudo apt-get autoremove
source .profile
Test:
go version
To install golang 1.10 (or whatever the latest version is at the time anyone is reading this):
Run go version to check and you should see output of:
go version g1.10 linux/arm
also this preserves/usr/bin/go
is you installed it previously.