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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
zh/core-concept/project-layout
本文详细介绍了 sponge 生成的 Go 项目代码结构,该结构遵循 Golang 标准项目布局规范。内容涵盖单体应用、微服务多仓库及微服务单体仓库三种模式下的目录组织,并对比了 Web 服务与 gRPC 服务的特定目录。同时,文章深入解析了默认的分层架构(入口、服务、路由、处理、数据访问、模型层)及其职责,并提出了引入业务逻辑层 (biz) 的扩展架构,以实现更佳的职责分离、代码复用和测试便利性。
https://go-sponge.com/zh/core-concept/project-layout.html
Beta Was this translation helpful? Give feedback.
All reactions