by strkek · 8y ago · 0 comments
At the root of the project I just have to do `echo 'github.com/username/package' > .gopkg` and after that, for everything I do under that directory tree, GOPATH will be automatically set to something like `export GOPATH="$(dirname .gopkg)/.gopath"`.
I don't use zsh anymore though.
[1]: https://gist.github.com/strkek/294c2f5e6fe94b8303b5121266b27...
[1]: https://direnv.net/