bxcodec / go-clean-arch

Go (Golang) Clean Architecture based on Reading Uncle Bob's Clean Architecture
MIT License
9.06k stars 1.19k forks source link

Why Repository is the second inner layer? #52

Open aQuaYi opened 4 years ago

aQuaYi commented 4 years ago

ca In above picture, DB in the fourth layer, the most outside. But in thie project, Repository is the second inner layer. Why?

yyong37 commented 3 years ago

the repository is just an interface because of that should not know about the detail of persistence implementation. the high build from low~