Hacker News new | ask | show | jobs
by zimbatm 4575 days ago
Another option is to use direnv (http://direnv.net).

Just add this to your .envrc in your project's folder:

    PATH_add bin
    GOPATH="$PWD"
The environment is automatically loaded or unloaded whenever you enter or leave the directory.

EDIT: Disclaimer, I'm the main author of direnv