dingo
dingo copied to clipboard
Go Dependency Injection Framework
```go type A interface {} type B struct { A *A `inject:""` } ``` This should error
E.g. `func (t Type) Inject(...)` instead of `func (t *Type) Inject(...)`
To be decided
Injector A: Mod A Injector B: Child of A, Mod B, depends on A Injector B inits Mod A and Mod B, multibinding resolves to B, A, A
To be compatible with the general patterns we should alias this.
To make the method clearer it would be helpful to require the `Inject` method to return itself, as currently it is not possible to make it more static. E.g. `func...
The Circular Dependency check is unable to detect circular dependencies in singletons, as the Singleton will deadlock before the detection happens. Testcase: ```golang type circSingletonA struct { B *circSingletonB `inject:""`...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/stretchr/testify](https://togithub.com/stretchr/testify) | `v1.8.4` -> `v1.9.0` | [](https://docs.renovatebot.com/merge-confidence/)...
[](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [golangci/golangci-lint-action](https://togithub.com/golangci/golangci-lint-action) | action | major | `v3` -> `v4` | ---...