golang-samber-do
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.
- installs 8w
- 3,614
- 30-day movement
- starts with the next reading
- Related entries
- 1
- Connections
- 0
An agent skill that teaches an AI coding agent how to use the samber/do dependency injection library in Go, covering the injector container, lazy/eager/transient service types, provider functions, scopes, health checks, graceful shutdown, and module organization via do.Package(). It bundles overview, rules, reference, and usage sections plus advanced and testing references, and targets both v1 and v2 of github.com/samber/do.
Reach for it when your project imports samber/do or you want to replace manual constructor injection with a type-safe, generics-based DI container and need the agent to follow the library's conventions.
Use it to
- Register services via provider functions at the composition root
- Organize service registration by module with do.Package()
- Configure lazy, eager, or transient service lifecycles
- Add health checks and graceful shutdown to services
- Refactor manual constructor injection into a DI container
For Go developers using or adopting samber/do
- Host repository
- samber/cc-skills-golang
- Version
- 1.3.2
- Installs, lifetime
- 37k
- Installs, 8 weeks
- 3,614
- Compatible with
- Designed for Claude Code, Codex or similar harness, and for projects using Golang.
- Licence
- MIT
- Invocable by
- user
- Host stars
- 3,261
- Host language
- Go