manakuro / golang-clean-architecture

Go with Clean Architecture

Home Page:https://manakuro.medium.com/clean-architecture-with-go-bce409427d31

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

accessing entitites/models inside interface

akif-ih opened this issue · comments

Hi i just wanted to know why u accessed models inside the interface layer as clean archi said only outer layer know about the next immediate later aren't we voilating the rule ?

Thank you for your question.

The outer layers do not always have to depend on the next layer. The dependencies should be only inward. So you can use models in any outer layer of it.

You should close this issue. @manakuro