Skip to content

Instantly share code, notes, and snippets.

@slav123
Forked from mlabouardy/go-install.sh
Last active July 10, 2019 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slav123/31500867cdcc8230f5ef0fc9f40a11a0 to your computer and use it in GitHub Desktop.
Save slav123/31500867cdcc8230f5ef0fc9f40a11a0 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/go
# 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