DEV Community

Discussion on: Clean Architecture using Golang

Collapse
 
noppawitt profile image
Noppawit Thairungroj

What if I have 2 services in different packages that use each other’s service which causes a circular import. How to prevent this problem in this structure?

Collapse
 
eminetto profile image
Elton Minetto

I believe that if two packages are so coupled they should probably be merged into one. You may need to refactor your packages to address this scenario.