Last Updated: February 25, 2016
·
484
· mvmaasakkers

Easy GOPATH fix for Google Go

If you're working with google go and having issues of getting go libraries in the wrong projects (which happens to me more than often :P) add a init.sh file to the base of your project with the contents:

export GOPATH=/Path/To/Project

and when you use the command line for running or building simply fire this command:

source init.sh

Voila, no more path issues

Note: This only works on Linux or Mac systems