Trying to make go modules work for the below project structure
go version go1.12 linux/amd64
.
├── bll
│ ├── billing
│ │ ├── details.go
│ │ └── go.mod
│ ├── complaint
│ │ ├── details.go
│ │ └── go.mod
│ └── task
│ ├── details.go
│ └── go.mod
├── go.mod
└── services
├── billing # refers the bll/* to create a service.
│ ├── go.mod
│ └── main.go
├── complaint # refers the bll/* to create a service.
│ ├── go.mod
│ └── main.go
└── task # refers the bll/* to create a service.
├── go.mod
└── main.go
Already tried solutions for a similar question :
https://github.com/go-modules-by-example/index/tree/master/009_submodules
https://roberto.selbach.ca/intro-to-go-modules/if the modues are nested as above, how does the git tag(s) change ??? tried bll/task/v0.1.1 and task/v0.1.1 etc. did not work.error is like:
should bll/go.mod services/go.mod be there ? (tried that also , didn't work)I have seen examples for single level directories, but not for nested ones.
Can you please point out what I am missing ?
Thanks.