3 ms·
You could use a Go "project" that is in fact the $GOPATH, like so: |-- projects |-- project_0 |-- project_1 |-- project_2
by christophberger 10y ago
You could use a Go "project" that is in fact the $GOPATH, like so:
|-- projects
|-- project_0
|-- project_1
|-- project_2
|-- go
|-- src
|-- pkg
|-- bin
|-- project_4
|-- project_5
Your other projects would then not be affected at all.
Or consider using a tool like `gb` (https://github.com/constabulary/gb https://github.com/constabulary/gb) that does not depend on $GOPATH. (But ensure to understand the caveats of this tool before switching to it.)