go-dependency-injection

Community

Build modular Go apps with DI patterns.

Authorvincent119
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Go dependency injection guidelines to improve testability, modularity, and maintainable architectures in Go projects.

Core Features & Use Cases

  • Define small, focused interfaces to decouple components and enable mock implementations.
  • Use constructor-based wiring and patterns like functional options to assemble services cleanly.
  • Leverage Uber Fx or Google Wire for scalable, type-safe dependency wiring and lifecycle management in real-world Go projects.
  • Apply in service boundaries, clean architecture modules, and testable repositories to reduce coupling and improve testability.

Quick Start

Create a minimal Go module that wires a repository and a service using constructor-based DI with either Fx or Wire to demonstrate a startup.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: go-dependency-injection
Download link: https://github.com/vincent119/ai-rules-kit/archive/main.zip#go-dependency-injection

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.