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

Dependency Injection in Go

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

Comprehensive guide for dependency injection (DI) in Golang. Covers why DI matters (testability, loose coupling, separation of concerns, lifecycle management), manual constructor injection, and DI library comparison (google/wire, uber-go/dig, uber-go/fx, samber/do). Use this skill when designing service architecture, setting up dependency injection, refactoring tightly coupled code, managing singletons or service factories, or when the user asks about inversion of control, service containers, or wiring dependencies in Go.

golangdependency-injectiondiinversion-of-controliocsoftware-architecturecode-design
0Stars
0Forks
0Usos
Fork

Documento do Skill

SKILL.mdgolang-dependency-injection/workflow
1. Assess project size and complexity to determine if a DI library is necessary.
2. If the project is small, recommend manual constructor injection.
3. If a DI library is needed, compare google/wire, uber-go/dig, and samber/do based on project requirements.
4. Generate code snippets for setting up the DI container and registering services.
5. Provide examples of constructor injection and dependency wiring.
6. Explain how to use mocks for testing with DI.
7. Offer guidance on common DI mistakes and how to avoid them.

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

Compõe comGo Testing Patterns
70%
Hebbian Synapse
Composite0.700
w = 0.3·α + 0.5·β + 0.2·γ
83
Compõe com ←Go Structs & Interfaces
70%
Hebbian Synapse
Composite0.700
w = 0.3·α + 0.5·β + 0.2·γ
85
Compõe com ←Go Project Layout
70%
Hebbian Synapse
Composite0.700
w = 0.3·α + 0.5·β + 0.2·γ
80
Compõe com ←Go CLI Best Practices
70%
Hebbian Synapse
Composite0.700
w = 0.3·α + 0.5·β + 0.2·γ
82
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

Dependency Injection in Go
golang-dependency-injection
Fases Cognitivas5
1.SENSE
2.CONTEXTUALIZE
3.HYPOTHESIZE
4.RECOMMEND
5.ACT
Triggers10
how to use dependency injection in Gowhat is the best way to implement DI in Golangcompare DI libraries in Goexplain dependency injection in Gorecommend a DI library for my Go projecthow to refactor Go code to use dependency injectionimplement inversion of control in Gouse google wire in gouse uber dig in gouse samber do in go

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-dependency-injection
$ synaptic skills detail golang-dependency-injection
$ synaptic skills live golang-dependency-injection

Links

GitHub Repository