-
Notifications
You must be signed in to change notification settings - Fork 6
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
Need to abstract the business logic from services in modules. #11
Comments
Dont u use models package? |
And why dont u use the full path to packages? (Cause ur using "../" paths) |
Yep. Using module is a lot better. I'm gonna edit it. |
Inside the application.go and repository you use the model. But the main.go inside the web directory only consumes the application(application.go). |
It's a good pratice in Go. A lot of go projects use this structure. |
Hmmm ill try it, thanks! |
You should use some file structure and separe, in modules, which implementation.
I would sujest to use pkg and cmd.
Example
in the cmd/cli/main.go should be something like that.
The text was updated successfully, but these errors were encountered: