Hacker News new | ask | show | jobs
by gluczywo 3442 days ago
You can view GOPATH centered development as a sign of simplicity. Probably not the most elegant thing in the world but the code organization is easy to fix with:

ln -s PROJECT_SOURCE_FOLDER $GOPATH/src/

1 comments

I actually adopted the GOPATH structure for all my repos, with some shell-script tooling (e.g. `cg github.com/foo/bar` is equivalent to `cd $GOPATH/src/github.com/foo/bar`, but clones the repo on first use). While transitioning to it, I indeed found quite a few repos that were checked out multiple times below my $HOME because of inconsistent directory structures.
I use https://github.com/motemen/ghq for that, which is really nice actually.