Replies: 1 comment
-
There is currently no way to do this in Fx. You have to provide a type itself as well as the annotated ones to be able to provide it as all 3 types. This could be a feature we could add to fx.Annotate. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the code like this
I want to provide
*Concrete
,Foo
,Bar
, the code above could achieve that, but by callingNew
twice, is there a way to provide the Interfaces and it self?Or
to prevent
New
calling twice, I could use fx.Out, and do something likeBeta Was this translation helpful? Give feedback.
All reactions