wire
wire copied to clipboard
Compile-time Dependency Injection for Go
``` --- FAIL: TestWire (309.01s) --- FAIL: TestWire/FieldsOfCycle (13.81s) wire_test.go:110: /tmp/wire_test290307528/src/example.com/foo/wire.go:24:42: FieldsOf not declared by package wire wire_test.go:123: Errors didn't match expected errors from wire_errors.txt: {[]string}[0]: -: "example.com/foo/wire.go:x:y: FieldsOf not...
I was trying to use some newer wire features with an older version of the `wire` command. I used `wire.Struct`, and the error I got was: /home/rog/src/tstwire/wire.go:8:27: unknown pattern Although,...
### Is your feature request related to a problem? Please describe. In the past, Wire has had issues with panicing on some types of inputs. (I can't find an example...
### Is your feature request related to a problem? Please describe. Sometimes there are fields that may need construction but not injection - typical examples are making a map for...
### Is your feature request related to a problem? Please describe. Wire puts the following line into the generated file: ```go //go:generate wire ``` We have a lot of generated...
implements #169 Below is the command to report wire build version info ` wire version `
### Is your feature request related to a problem? Please describe. During development, oftentimes one doesn't want to connect to all the real things (such as a Redis for running...
### Is your feature request related to a problem? Please describe. I used to write **type method** instead of a **single NewXxx**. eg: ```go // declare NewDog method, which belong...
### Describe the bug It is possible to pass provider function with nil value cleanup function (cleanup == nil) in case of provider with 3 values signature: init, cleanup, error....
Wire's current installation documentation reads: > Install Wire by running: > > ```shell > go get github.com/google/go-cloud/wire/cmd/wire > ``` > > and ensuring that `$GOPATH/bin` is added to your `$PATH`....