bxcodec / go-clean-arch

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

How to organize another domain? #85

Open fsxchen opened 10 months ago

fsxchen commented 10 months ago

Hi,I think this is a good repo to study clean-arch, In this demo, It implements a specific domain(article),and in this article directory,It privodes usecase package。If I add another domain(such as author),then I have to package name usecase。So How do I solve this dilemma?

I'm a pythoner turned golang!This transition has been difficult for me.

youssefhmidi commented 9 months ago

Hi I don't think that it is a problem as you can see in the app/main.go the imports there are labeled "../article/usecase" so it wont matter if you have two packages the same name as long as they are not located in the same directory . I may misunderstood your question so I would appreciate if you would correct me.