Hacker News new | ask | show | jobs
by technoweenie 4018 days ago
How do you handle a custom GOPATH like that when the current repository needs to be in there too? We've tried manually symlinking the repo dir into the custom '$GOPATH/src/github.com/user/repo' dir, but it feels really hacky.
2 comments

You can separate multiple paths with a colon.
More specifically, with os.PathListSeparator. (colon on Unix, semicolon on Windows and \x00 on Plan 9)
We just keep all our go code in one repo.