You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am a new to golang and clean arch!
And I am curious about the design of the usecase directory
When I start a program, the repo and the webapi part are just directly injected into the usecase and create a translationUseCase. Does it means that the translation usecase just representing the all usecases? But what if I want to add new usecases?
Hello, I am a new to golang and clean arch!
And I am curious about the design of the usecase directory
When I start a program, the repo and the webapi part are just directly injected into the usecase and create a
translationUseCase
. Does it means that the translation usecase just representing the all usecases? But what if I want to add new usecases?If I trying to use more usecase.New in my project like
And I have to append a lot of params to
v1.NewRouter(handler, l, testUseCase)
For example:
If I do this, the NewRouter params will just grow as far as the project grow. It seem not like a good way to solve that.
Does anyone have idea about it?
The text was updated successfully, but these errors were encountered: