I was working on a Go project in a directory that was not in my GOPATH. I was using relative imports.
I am trying to move the project into my GOPATH so I can stop using relative imports, but I keep getting unexpected directory layout
errors.
I've checked the Go docs "how to write Go code" but I still can't see what the problem is.
The GOPATH is currently
/Users/M/go
The GOROOT is currently
/usr/local/Cellar/go/1.14.1/libexec
The project is currently located in
/Users/M/go/src/github.com/code/project
I am trying to make the following imports:
package aws_service
import (
"github.com/project/server/DB"
)
Where "github.com/project/server/DB"
is another package I created within my project.
What am I doing wrong?