wire icon indicating copy to clipboard operation
wire copied to clipboard

Compile-time Dependency Injection for Go

Results 121 wire issues
Sort by recently updated
recently updated
newest added

### Describe the bug I am actually not 100% sure this is a pure bug of mis configuration, but since I googled and asked at some places and was not...

needs info

### Describe the bug When using the `--header_file` flag the resulting generated file has the following go generate line: ```go //go:generate wire ``` This implies when someone later runs `go...

It's common for constructor functions to return values that have a Close method that's used to clean up the value's associated resources. This doesn't fit easily with the convention used...

You can use `go bug` to have a cool, automatically filled out bug template, or fill out the template below. ### Describe the bug I have no straightforward way of...

enhancement

### Describe the solution you'd like I would like an option that adds a field to the generated go code, the value of which is a hash of the source...

needs info

The [`wire.Load` function](https://github.com/google/go-cloud/blob/11bb776c80e5cc8abaa6c9aead66d5c1129c9632/wire/internal/wire/parse.go#L196), used by Wire's interactive commands, does not have any tests. While it shares much of the code with the well-tested `Generate` function, it has enough additional functionality...

blocked
code health

One of the specific advantages of the wire approach is that it generates code that's relatively readable compared to reflect-based equivalents. When `wire.Value` is used on a small by-value type,...

enhancement
good first issue

https://travis-ci.com/google/wire/jobs/201184169 ``` --- FAIL: TestWire/ValueChain (0.56s) wire_test.go:110: go [list -f {{context.GOARCH}} {{context.Compiler}} -tags=wireinject -- unsafe]: exit status 1: go: open C:\Users\travis\AppData\Local\Temp\wire_test023669613\src\example.com\go.mod: The process cannot access the file because it is...

Other static analysis tools might want to get access to the Wire provider graph for visualization, navigation, etc. The package is currently internal so that the API can be iterated...

enhancement