Golang doesn’t have its own installer, so we can just install it with pacman.
sudo pacman -S go
I like my Golang workspace in FHS style. The default is in $HOME/go.
mkdir ~/.local/share/go
go env -w GOPATH=$HOME/.local/share/go
Add to PATH, edit ~/.bashrc:
export PATH=$PATH:$(go env GOPATH)/bin