fx icon indicating copy to clipboard operation
fx copied to clipboard

Support multiple `ResultTags` annotations

Open miyamo2 opened this issue 7 months ago • 2 comments

Closes #1210

This commit makes it possible to specify multiple fx.ResultTags annotations in a single fx.Annotate call.

fx.Provide(
    fx.Annotate(
        func() *bytes.Buffer {
            return bytes.NewBuffer([]byte("Hello!"))
        },
        fx.ResultTags(`name:"a"`),
        fx.ResultTags(`name:"b"`),
        fx.ResultTags(`name:"c"`),
    ),
)

miyamo2 avatar Jul 10 '24 21:07 miyamo2