Hello,
I published a couple of modules to github, with this folder structure
project/
├─ server/
│ ├─ main.go
│ ├─ go.mod
├─ api-routes/
│ ├─ functionality.go
│ ├─ go.mod
├─ go.work
I'm developing a separate wails app that needs to import api-routes. The error I encounter is that github.com/.../api-routes refers to itself as "api-routes" only.
- Is there any way I can preserve this package structure while getting to use the module's functionality? I don't want to break it up into multiple small repositories.
- I do know I'm not supposed to publish go.work but I will research a solution to that later.
- I could edit the package name to be github.com/.../api-routes, but I'm not sure what the consequences of that are so I haven't done it yet.