I frequently have to install golang programs on my raspberries, so here are instructions so I can stop searching how to do that each time. ;)
/usr/local~/.profile, adding the following:PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
GOPATH=$HOME/go
source ~/.profile.go version
reference: https://www.jeremymorgan.com/tutorials/raspberry-pi/install-go-raspberry-pi/