Basic golang setup

Install

sudo pacman -S go

Configure

Add these to your ~/.bash_profile:

export GOPATH=~/.gopath
export PATH=$GOPATH/bin:$PATH

Use

Install packages with:

go get -u -v package-name

And modules with:

env GO111MODULE=on go get -v module-name