3 ms·
Another option is to use direnv (http://direnv.net http://direnv.net). Just add this to your .envrc in your project's folder: PATH_add bin GOPATH="$PW
by zimbatm 13y ago
Another option is to use direnv (http://direnv.net 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