DEV Community

Discussion on: Clean Boilerplate of Go, Domain-Driven Design, Clean Architecture, Gin and GORM.

Collapse
resotto profile image
resotto Author • Edited on

Hi Varun. Thank you for your comment.

1:
If you have subdomains, please create them under app like app/{SUBDOMAIN}/ and place domain/application/adapter packages under it.
Moreover, if you have multiple entities in one subdomain, the problem you pointed out may exist, which I don't think it is problem because the number of entities might not be so much.
Package name should show clearly what is in there, I think. So I don't create more sub package in the domain.

2:
If you have domain services, please create the package domain/service like application/service and place them there.

Regards,
resotto