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

Make folder structure modular. #41

Open
dipeshdulal opened this issue Mar 5, 2023 · 0 comments
Open

Make folder structure modular. #41

dipeshdulal opened this issue Mar 5, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@dipeshdulal
Copy link
Owner

dipeshdulal commented Mar 5, 2023

Modular Folder Structures

Currently, routes, services, repository, etc have been added in their separate folders.
This make it less modular, harder to re-use and less maintainability.

Thinking of making this structure something like this;

pkg
  |-- authentication (model, handler, service, route, repository, serializer etc.)
  |-- users
  |-- .... 
  |-- common (some common things re-usable by multiple modules)
internal
  |-- framework's internal wiring code 
domain
  |-- users.go (interfaces for users package)
  |-- authentication.go (interfaces for authentication package)

While we are at it, we need to look at the go's recommended folder structure for packages.
Following something like this

@dipeshdulal dipeshdulal added the enhancement New feature or request label Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant