Skip to content

Instantly share code, notes, and snippets.

@psanzay
Forked from molivier/gist:271bba5d67de1583a8e3
Last active August 6, 2017 04:24
Show Gist options
  • Save psanzay/23940db5159e8a8b7f43b155eb900c86 to your computer and use it in GitHub Desktop.
Save psanzay/23940db5159e8a8b7f43b155eb900c86 to your computer and use it in GitHub Desktop.
Set $GOPATH on Mac OSX : bash_profile
# Edit ~/.bash_profile
# GOPATH is used to specify directories outside of $GOROOT that contain the source for Go projects and their binaries.
export GOPATH=/Users/username/go
export PATH=$GOPATH/bin:$PATH
# Reload profile : source ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment