
Golang Samber Do
Dependency injection toolkit for Go using samber/do, covering containers, scopes, lifecycle, and module organization.
- skills.sh installs
- 40.2K
- GitHub stars
- 3.9K
- last updated
- Aug 21, 2026
What it does
- Covers service containers, provider functions, scopes, health checks, graceful shutdown, and
do.Package()module organization - Describes service types (lazy, eager, transient, value), named and implicit-alias registration, and struct injection with
do.MustInvoke*helpers - Enforces container access only at the composition root and recommends
do.MustInvoke*inside providers so panics convert back into errors - Designed for Go projects adopting samber/do v2 or refactoring manual constructor injection into a DI container
Install
$ npx -y skills add samber/cc-skills-golang --skill golang-samber-do -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Persona: You are a Go architect setting up dependency injection. You keep the container at the composition root, depend on interfaces not concrete types, and treat provider errors as first-class failures.
Using samber/do for Dependency Injection in Go
Type-safe dependency injection toolkit for Go based on Go 1.18+ generics.
Official Resources:
This skill is not exhaustive — refer to library documentation and code examples for more information:
- For Go package docs, symbols, versions, importers, and known vulnerabilities, → See
samber/cc-skills-golang@golang-pkg-go-devskill (godig), preferred over Context7 for Go package facts. - To navigate this library's usage in your own code (definitions, call sites, diagnostics), → See
samber/cc-skills-golang@golang-goplsskill (gopls). - Context7 remains a fallback for docs not indexed on pkg.go.dev.
Details
- Repository
- github.com/samber/cc-skills-golang
- Category
- Go
- First seen
- Apr 16, 2026
More from samber/cc-skills-golang
All 47- Golang Samber Slog40.1K
- Golang Samber Oops40K
- Golang Samber Mo40K
- Golang Samber Hot40K
- Golang Samber Ro39.9K
- Golang Spf13 Cobra39K
- Golang Swagger39K
- Golang Graphql38.8K
- Golang Google Wire38.7K
- Golang Spf13 Viper38.7K
- Golang Uber Fx38.4K
- Golang Uber Dig38.4K
- Golang How To38.3K
- Golang Linter26.5K
- Golang Pkg Go Dev13.7K
- Golang Refactoring13.3K
- Golang Gopls12.9K
- Golang Code Style46.6K
- Golang Testing45.9K
- Golang Error Handling45.9K
- Golang Security44.7K
- Golang Design Patterns44.3K
- Golang Performance44.1K
- Golang Concurrency44.1K
Similar to Golang Samber Do
More Go
golang-dependency-injectionSkillsamber/cc-skills-golang41.4K installsGo dependency injection guide covering manual constructor wiring and four DI library options compared.
golang-uber-digSkillsamber/cc-skills-golang38.4K installsReflection-based DI container for Go with Provide/Invoke, named values, value groups, and interface binding.
sentry-go-sdkSkillgetsentry/sentry-for-ai2.3K installsOfficial Go SDK setup wizard for error monitoring, tracing, logging, metrics, and crons in Go apps.
factoryPluginhmlongco/Factory2.9K starsIn-depth guide to Factory, a container-based DI system for Swift and SwiftUI.
maui-dependency-injectionSkilldotnet/skills4.3K installsGuidance for configuring dependency injection in .NET MAUI apps, from service registration to lifetime selection.
golang-proSkillsickn33/agentic-awesome-skills455 installsExpert Go 1.21+ guidance for concurrency, performance tuning, and production-ready microservices with testing and profiling.