Skip to content
G

golang-dependency-injection

Comprehensive guide for dependency injection (DI) in Golang

by samberFree

Launch
#3439in AI Skills
0In stores

Description

golang-dependency-injection is an agent skill from the samber cc-skills-golang collection for dependency injection in Go. It explains why in…

Highlights

  • Design and refactor modes
  • Manual injection or library choice
  • Global state and init() discovery
  • Service-locator detection
  • Wiring code generation
  • Installs from skills.sh

Ratings & Reviews

No ratings yet

Be the first to rate golang-dependency-injection.

People also visit

G

golang-design-patterns

Idiomatic Golang design patterns

AI Skills
Launch
G

golang-project-layout

Golang project layout and workspace setup

AI Skills
Launch
G

golang-samber-do

Dependency injection in Golang using samber/do

AI Skills
Launch
C

cqrs-implementation

Implement Command Query Responsibility Segregation for scalable architectures

AI Skills
Launch
E

event-store-design

Design and implement event stores for event-sourced systems

AI Skills
Launch
G

go-concurrency-patterns

Master Go concurrency with goroutines, channels, sync primitives, and context

AI Skills
Launch

golang-dependency-injection FAQ

What does this skill cover?

Dependency injection in Go, including when to use manual injection and which libraries to consider.

Which libraries does it mention?

google wire, uber dig and fx, and samber do, with a note to check their current documentation.

What does refactor mode do?

It finds global variables, init-time service setup, concrete dependencies and service-locator patterns, then proposes a migration plan.

How do I install it?

Run npx skills add https://github.com/samber/cc-skills-golang --skill golang-dependency-injection.

What are the security audit results?

skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.

How popular is it?

The page shows about 37.8K installs, and the cc-skills-golang repository has 3.5K GitHub stars.

What are the best golang-dependency-injection alternatives?

Popular alternatives to golang-dependency-injection include golang-design-patterns, golang-project-layout and golang-samber-do. See all golang-dependency-injection alternatives

Developer Stuff

Badges