Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: