TokenToSeaSkill 广场
English 控制台

Golang Dependency Injection

samber

Comprehensive guide for dependency injection (DI) in Golang. Covers why DI matters (testability, loose coupling, separation of concerns, lifecycle management), manual constructor injection, and DI library comparison (google/wire, uber-go/dig, uber-go/fx, samber/do).

安装

npx skills add samber/cc-skills-golang --skill golang-dependency-injection