A reflection based dependency injection toolkit for Go.
Thanks to @paullen and @lcarilla for their contributions to this release.
dig.As
with dig.Group
.FillInvokeInfo
Option and InvokeInfo
struct to help
extract the types requested by an Invoke
statement.WithProviderCallback
and WithDecoratorCallback
Options to provide callback functions.Scope.Decorate
.dig.Scope
which creates a scoped dependency injection
container to scope dependencies.Scope.Decorate
and Container.Decorate
which allows a
decorator to modify a dependency already provided in the dependency graph.FillDecorateInfo
Option and DecorateInfo
struct which exposes
information on what Dig was able to understand from the decorator provided
with Scope.Decorate
or Container.Decorate
.