AI AGENT ADDONS
Backend & APIs
23,364installs

Dependency injection helps you organize the pieces of your Go program. The dig library from Uber is a tool that builds an object graph when your application starts. It uses reflection to find out what your constructors need and provide them automatically.

You can register a constructor with Provide. Then you can call Invoke to get a service from the container. The container makes sure each object is created only once and shared across your code.

You will also learn about named values, value groups, optional dependencies, scopes, and decoration. These features let you wire complex applications cleanly.

Add Golang Uber Dig skill to your workflow

Global

mkdir -p ~/.claude/skills/golang-uber-dig

Project

mkdir -p .claude/skills/golang-uber-dig

Source Repository

Stars
2,322
Forks
149
Watchers
2,322
License
MIT
Last Push
28 days ago
Created
4 months ago