I have a project that has a structure like so:
root
|
go.mod
sub-dir-a
sub-dir-b
I want to break up my go.mod file so that sub-dir-a/b each have their own mod. The sub dirs have executables and I would like to be able to package each independently.
This is what I'd want ideally.
root
|
sub-dir-a
|
go.mod
sub-dir-b
|
go.mod
I've tried doing this manually, but when I go mod tidy on each of my sub-dir mod files I get ambiguous import errors.
If someone who's run into this issue could give some advice, it'd be much appreciated.