OMENSAH
5/11/2017 - 3:04 AM

Go setup for linux

Go setup for linux

Download go

extract to directory. Mine was /usr/local

launch the terminal

run sudo gedit ~/.bashrc

Add these to the your open file

export GOROOT=/usr/local/go
export GOPATH=/app/src
export GOBIN=/app/src/bin
export PATH=$PATH:$GOROOT/bin
export GOHOSTARCH="amd64"
export GOHOSTOS="linux"
export GOARCH="amd64"
export GOOS="linux"
export GOTOOLDIR=/usr/local/go/pkg/linux_amd64

run source ~/.bashrc type go and pres enter