Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to organize another domain? #85

Open
fsxchen opened this issue Oct 24, 2023 · 1 comment
Open

How to organize another domain? #85

fsxchen opened this issue Oct 24, 2023 · 1 comment

Comments

@fsxchen
Copy link

fsxchen commented Oct 24, 2023

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants