kkdai / LINE-Bot-ChatSummarizer

Use ChatGPT to summarize your group chat as a chat summarizer with the LINE Bot Chat Summarizer.
Apache License 2.0
56 stars 39 forks source link

Improving project architecture by separating folders and layers #48

Open Xanonymous-GitHub opened 1 year ago

Xanonymous-GitHub commented 1 year ago

Description

  1. Separate the project folders into src and pkg directories, adhering to the standard Go project layout. The src directory will contain application logic, while the pkg directory will keep the packages that can be imported by other projects.
  2. Clearly separate layers by creating a dedicated layer for each component of the project. For instance, the database client should be in its own layer, separated from the application logic layer.
  3. Rename many variables and functions to have more understandable names that reflect their roles better. We believe this enhances the project's readability and makes it easier to maintain in the future.

These changes will enable easier collaboration on the project since developers will have a clearer understanding of what each component does, and they will be able to make changes more easily. By separating folders and layers, we ensure better code organization and more readable code that is easier to maintain in the future.