Install Link to heading
sudo pacman -S go
Configure Link to heading
Add these to your ~/.bash_profile
:
export GOPATH=~/.gopath
export PATH=$GOPATH/bin:$PATH
Use Link to heading
Install packages with:
go get -u -v package-name
And modules with:
env GO111MODULE=on go get -v module-name