Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
The Go Programming Language
›
http://golang.org/
›
Go Playground
Go Projects
›
Revel Web Framework
Advertisement
V2EX
›
Go 编程语言
Go 语言中 Web 项目的依赖管理的最佳实践是什么?不使用 DI 的情况下
ke1e
·
Aug 24, 2024
· 1212 views
This topic created in 613 days ago, the information mentioned may be changed or developed.
Go Web 项目应该还是 MVC 架构吧;
那么 Service 还是用单例模式嘛?
是在 Route 初始化的时,构造 Handler 将 Service 初始化传进去嘛,如果需要用到别的 Service 呐?
那么如果异步任务模块也用到了这些 Service 呐?
有没有大佬解答下
Go
Web
依赖
1 replies
1
saibotan
Aug 27, 2024
https://github.com/uber-go/fx
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
3242 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 79ms ·
UTC 13:07
·
PVG 21:07
·
LAX 06:07
·
JFK 09:07
♥ Do have faith in what you're doing.
❯