Skip to content

Instantly share code, notes, and snippets.

@mlabouardy
Created October 24, 2017 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mlabouardy/7423beadad1e536b74da77850b5ade70 to your computer and use it in GitHub Desktop.
Save mlabouardy/7423beadad1e536b74da77850b5ade70 to your computer and use it in GitHub Desktop.
Setup Go environment variables
# GOROOT is the location where Go package is installed on your system
export GOROOT=/usr/lib/golang
# GOPATH is the location of your work directory
export GOPATH=$HOME/projects
# PATH in order to access go binary system wide
export PATH=$PATH:$GOROOT/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment