golang-samber-do
Guides Go developers in using the samber/do library for type-safe dependency injection, covering service registration, scopes, lifecycle management, and graceful shutdown.
What it does
Dependency injection in Golang using samber/do — service containers, lifecycle management, scopes, health checks, graceful shutdown, and module organization. Apply when using or adopting samber/do, when the codebase imports github.com/samber/do or github.com/samber/do/v2, or when refactoring manual constructor injection into a DI container.
Quality judgment
Covers core samber/do usage (registration, invocation, aliasing, named services, packages, quick-reference tables) with clear, opinionated guidance like MustInvoke-inside-providers, and the description has strong trigger conditions. However, scopes, lifecycle, struct injection, testing, and debugging are deferred to referenced files not present, and there is a duplicated ProvideValue example plus no health-check or graceful-shutdown detail despite the description promising them.