Skip to content
G

golang-dependency-injection

Comprehensive guide for dependency injection (DI) in Golang

by samberFree

#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-samber-do

Dependency injection in Golang using samber/do

AI Skills
Get
G

golang-google-wire

Compile-time dependency injection in Golang using google/wire

AI Skills
Get
G

golang-uber-dig

Implements dependency injection in Golang using uber-go/dig

AI Skills
Get
G

golang-project-layout

Golang project layout and workspace setup

AI Skills
Get
G

golang-design-patterns

Idiomatic Golang design patterns

AI Skills
Get
G

golang-dependency-management

Dependency management for Golang projects

AI Skills
Get

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-samber-do, golang-google-wire and golang-uber-dig. See all golang-dependency-injection alternatives

Developer Stuff

Badges