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