You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closesuber-go#1210
This commit makes it possible to specify multiple `fx.ResultTags` annotations in a single `fx.Annotate` call.
```go
fx.Provide(
fx.Annotate(
func() *bytes.Buffer {
return bytes.NewBuffer([]byte("Hello!"))
},
fx.ResultTags(`name:"a"`),
fx.ResultTags(`name:"b"`),
fx.ResultTags(`name:"c"`),
),
)
```
As multiple
As
annotations are supported, it would make sense to support multiple ResultTag annotations.Currently this code fails with
cannot apply more than one line of ResultTags
A work-around is possible by providing multiple copies of the same instance of a type, however it is less intuitive.
Is this a breaking change?
It should not be a breaking change as nothing (sans tests) should rely on app failure for multiple result tag annotations.
The text was updated successfully, but these errors were encountered: