Synaptic SkillsSynapticSkills
MarketplaceSkill GraphCriar SkillMCP ServerPlataformaEnterprise
v0.1.0-beta
Voltar ao Marketplace
DevelopmentMédio

Using samber/do for Dependency Injection in Go

porsamber·samber· v1.0.0 · atualizado em 2026-04-10
80
Score

Implements dependency injection in Golang using samber/do. Apply this skill when working with dependency injection, setting up service containers, managing service lifecycles, or when you see code using github.com/samber/do/v2. Also use when refactoring manual dependency injection, implementing health checks, graceful shutdown, or organizing services into scopes/modules.

golangdependency-injectionsamber-doiocservice-containergo
0Stars
0Forks
0Usos
Fork

Documento do Skill

SKILL.mdgolang-samber-do/workflow
1. Install the samber/do/v2 library: `go get -u github.com/samber/do/v2`
2. Create a new injector (container) using `do.New()`.
3. Define services as interfaces and concrete implementations.
4. Register services using `do.Provide`, `do.ProvideValue`, or `do.ProvideTransient`.
5. Resolve dependencies using `do.Invoke` or `do.MustInvoke` at the composition root.
6. Organize service registrations using `do.Package()` for modularity.
7. Implement graceful shutdown using `injector.ShutdownOnSignalsWithContext()`.

Telemetria de Agentes

Execuções
0
total
Taxa de Sucesso
0%
últimos 30d
Latência Média
0.0s
p50
Alucinação
0.0%
detecção
Tokens Entrada
0
avg 0/exec
Tokens Saída
0
avg 0/exec

Uso por Plataforma

Skills Relacionados

Similar aSolana Development Skill (framework-kit-first)
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
85
Similar aCoder
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
81
Similar aElysiaJS Development Skill
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
84

Árvore do Skill

Using samber/do for Dependency Injection in Go
golang-samber-do
Fases Cognitivas5
1.SENSE
2.CONTEXTUALIZE
3.RECOMMEND
4.ACT
5.REFLECT
Triggers8
use samber/do for dependency injection in Goimplement dependency injection with samber/doset up a service container in Go using samber/domanage service lifecycles with samber/dorefactor manual dependency injection to samber/doorganize services into scopes/modules with samber/doimplement health checks using samber/doimplement graceful shutdown using samber/do

Avaliar este Skill

Score Breakdown

⭐Avaliação Humana0%
🤖Sucesso de Agentes0%
🕐Atualidade100%
🔗Saúde de Dependências100%
🕸️Centralidade no Grafo0%
🛡️Segurança50%
CompositeScore = α·Humano + β·Agente + γ·Recência + δ·Deps + ε·Centralidade + ζ·Segurança

Instalação

$ synaptic mcp download golang-samber-do
$ synaptic skills detail golang-samber-do
$ synaptic skills live golang-samber-do

Dependências

github.com/samber/do/v2

Links

GitHub Repository