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

Repository should be Unexported except by UseCase #77

Open
xtianpu opened this issue May 17, 2023 · 0 comments
Open

Repository should be Unexported except by UseCase #77

xtianpu opened this issue May 17, 2023 · 0 comments

Comments

@xtianpu
Copy link

xtianpu commented May 17, 2023

Hi! I think Repositories should be unexported by except the usecase, which can be achieved by putting underscore to function name of new repo instance and move the usecase and repo in one domain package for example:

article
├── usecase.go
├── repo.go

The approach above, will force clients to call service rather than calling the new repo instance.

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

1 participant