⚒️ dig
![Go Report Card](https://camo.githubusercontent.com/3ec3471b36b4f538925c26f22aaed25d306dbf25eef9b959096bfd216b82d557/68747470733a2f2f676f7265706f7274636172642e636f6d2f62616467652f6769746875622e636f6d2f756265722d676f2f646967)
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
.