Sign inGet started
–

Guides Go developers in using the samber/do library for type-safe dependency injection, covering service registration, scopes, lifecycle management, and graceful shutdown.

Lift · GLM-5.3-flash—not yet benchmarked
87
Trustsecurity · quality · license · upkeep
Scan Saferisk 0/100
LicenseMITserved via MCP

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.

#architecture#dependency-injection#golang#lifecycle#samber-do#service-container

Quality judgment

completeness
6.5/10
clarity
8.0/10
trigger quality
8.5/10
examples
7.0/10
structure
8.0/10
overall
7.0/10

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.

allowed-tools

Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch mcp__context7__resolve-library-id mcp__context7__query-docs Bash(godig:*) Bash(gopls:*) LSP mcp__gopls__*

Files (5)

evals/evals.json · 11.6 KBLICENSE · 1.0 KBreferences/advanced.md · 5.7 KBreferences/testing.md · 1.4 KBSKILL.md · 9.1 KB