Golang Dependency Injection

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.

Harmeet10000 Updated

File contents

Harmeet10000/skills commit 01bb5e1a50

Frequently asked questions

npx skillmds@latest add harmeet10000/golang-dependency-injection