Lightlines
By samber

golang-dependency-injection

samber35.9k installs

Loosely coupled Go services that are easy to test.

What it does

Guides the design and refactoring of Go services toward testable dependency wiring and an appropriately sized injection approach.

When to use it

Use when designing Go service architecture, setting up dependency injection, refactoring coupled code, or managing service lifecycles and dependency wiring.

How to use it

It changes how the agent designs and refactors Go services by requiring constructor injection, consumer-defined interfaces, and dependency containers confined to startup wiring.

What you provide

  • An existing project

Good to know

  • starts 3 helper agents

Latest review

What you need · 1

Requires the Go binary for work in Golang projects; the general workflow specifies no minimum version.


Access · 1

This skill

official DI library documentation

Read

Reads official DI library docs