Popularity
8.7
Stable
Activity
0.0
-
3,499
47
202
Programming language: Go
License: MIT License
Latest version: v1.14.1
dig alternatives and similar packages
Based on the "Dependency Injection" category.
Alternatively, view dig alternatives based on common mentions on social networks and blogs.
-
container
A lightweight yet powerful IoC dependency injection container for the Go programming language -
gontainer/gontainer
YAML-based Dependency Injection container for GO -
boot-go
Component-based development with dependency injection using reflections for Go developers.
Learn any GitHub repo in 59 seconds
Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
Promo
getonboard.dev
Do you think we are missing an alternative of dig or a related project?
Popular Comparisons
README
:hammer_and_pick: dig

A reflection based dependency injection toolkit for Go.
Good for:
- Powering an application framework, e.g. Fx.
- Resolving the object graph during process startup.
Bad for:
- Using in place of an application framework, e.g. Fx.
- Resolving dependencies after the process has already started.
- Exposing to user-land code as a Service Locator.
Installation
We recommend consuming SemVer major version 1
using
your dependency manager of choice.
$ glide get 'go.uber.org/dig#^1'
$ dep ensure -add "go.uber.org/dig@v1"
$ go get 'go.uber.org/dig@v1'
Stability
This library is v1
and follows SemVer strictly.
No breaking changes will be made to exported APIs before v2.0.0
.