wire
wire copied to clipboard
Compile-time Dependency Injection for Go
### Is your feature request related to a problem? Please describe. If I am wiring a complex application which uses interfaces to describe dependencies, it is cumbersome to have to...
### Is your feature request related to a problem? Please describe. I'd like to be able to use Wire without compiling my own binary ### Describe the solution you'd like...
### Describe the bug Can't use `wire.Bind` inside `wire.NewSet` without concrete type provider. Wire fails to generate with error ``` wire.Bind of concrete type "..." to interface "...", but mySet...
### Describe the bug Calling a function that returns a function in `wire.Build` results in the `unknown pattern` error. ### To Reproduce This may be in a shared package, to...
Testing is often a major issue with DI, and I don't see any comments addressing it for wire. It would be very helpful for evaluation to see some testing examples...
### Is your feature request related to a problem? Please describe. It's difficult currently to use wire for conditional bindings or to delay instantiation of a bound type. I'm thinking...
### Describe the bug Result parameter names are not retained for generated injectors. Result parameters can be useful for tools like gopls and IDEs for suggesting variable names, generating code,...
I've been working on ideas for migrating some of our dependency injection code to using wire, and one awkwardness is when a service depends on a set of heterogeneous components...
Related to #7 but not quite the same. The documentation for NewSet says that the argument can be a function value. A function literal is a function value, and so...
### Is your feature request related to a problem? Please describe. When building applications, we might want to support different database drivers, e.g using Go CDK and using the in-memory...