wire
wire copied to clipboard
Compile-time Dependency Injection for Go
You can use `go bug` to have a cool, automatically filled out bug template, or fill out the template below. ### Describe the bug cannot use (*sql.DB)(db) (value of type...
If someone wants to "override" a set of providers from a larger set, it would be helpful to have the gowire tool output the minimal code to create a new...
### Is your feature request related to a problem? Please describe. I have several controllers that I want to create. These controllers all implement the `type XX interface` but are...
This PR explores the idea of allowing wire to be used as a library in addition to its current use as a CLI-only tool. Currently, all logic to generate the...
You can use `go bug` to have a cool, automatically filled out bug template, or fill out the template below. ### Describe the bug Some Providers rely on locally-defined non-exported...
### Is your feature request related to a problem? Please describe. When I used wire to build the code with go generics in golang:1.18, but It didn't work and throw...
Fixes #362 Added some details on how to run the generated code. I was having a bad time following the tutorial since I kept getting the error: ``` # command-line-arguments...
Let's imagine, we have an application with a lot of business logic and big amount of abstraction layers. This application could make calls to external (for example http) services. When...
https://github.com/google/wire/blob/79660af94317b9c466adc39f27f469f1079c779b/_tutorial/README.md?plain=1#L115 I think this step is a missing example of how to `run` or `build` the generated code. Also, it's not obvious that we need also to include the generated...