I am very new at Go, and need a bit of help with a way to make import pathing more distributable between my team.
Currently at the top of one of my Go files, I have an import, say "github.teamName.com/teamMemberA/HeartThrob/c"
I forked his project to my own name and downloaded it and got some pretty obvious import errors.
MY path to the file it is trying to import is the following: "github.teamName.com/myName/HeartThrob/c"
This pathing change is because I am pulling the project from my own forked repo.
What is a way I can go about fixing this? Is relative pathing possible? I can't put all the Go files into the same directory due to the size of the project and some obvious places for separation.
Disclaimer: New to Go AND Git (My forked approach is team-mandated though)
/myname/appname
into$GOPATH/src/orgname/appname
(or whatever path corresponds to the master URL), and do your work there. If you need to work with multiple forks, switch GOPATHs or swap them out via mv, etc.