This question already has an answer here:
I am starting with Go and trying to get my head around GOPATH
(and probably GOBIN
).
When trying to fetch external libraries via go get
I get the error
go get: no install location for directory D:\Seafile\dev-perso\domotiqueNG\services\dispatcher-go\src\dispatcher-go outside GOPATH
This error is apparently solved by having a project structure below $GOPATH/src
.
Does this mean that all my Go programs must live there? If GOPATH
is d:\hello
then the projects bonjour
and aurvoir
really need to be in
d:\hello\src\bonjour
d:\hello\src\aurevoir
only ?
In this is the case how can I
- split, say, personal and professional projects when the personal must stay at
d:\home
and professional atx:\work
? - have multilanguage projects where
d:\home\domotique\dispatch
is in Go,d:\home\domotique\whatever
is in Python, and I have several such combos ind:\home
?
</div>