So I am starting a new project, and we are using a private repository with protected branches etc (so I can't just commit to master) - my original ideal structure was something like this:
/api
/cmd
/server
main.go
/negotiator
negotiator.go
go.mod
I started working with a very minimal "exported" struct like so:
## /negotiator/negotiator.go
package negotiator
struct Test {}
and then importing it like this:
## /api/cmd/server/main.go
import (
"fmt";
"gitlab.myorg.whatever/repo-name/negotiator
)
Which it can't find, because that code is not on main yet, but I also am not allowed to do something like:
## /api/cmd/server/main.go
import (
"fmt";
"negotiator";
)
What is the right way to do such a structure?