Manage multiple GOPATH dirs with ease

Thu, Feb 5, 2015

Usually I have only one GOPATH in my machine and thats most Gophers out there recommend. However, sometimes we just need to work on different projects with different versions of the same dependency, and it is out of question to update them. We just don’t want to break something that is working, or mess with it. The quick solution is to point GOPATH to somewhere else, but everytime we have to swap the project we are working on, we need to change it again.