Using samber/do for Dependency Injection in Go
使用 samber/do 在 Go 中进行依赖注入——服务容器、生命周期管理、作用域、健康检查、优雅关闭及模块组织。适用于使用或采用 samber/do 时,代码库导入 github.com/samber/do 或 github.com/samber/do/v2 时,或将手动构造函数注入重构为 DI 容器时。
安装命令
npx skills add https://github.com/samber/cc-skills-golang --skill golang-samber-do