-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvokeAs
problems
#75
Comments
1- I think you should just call 2- I'm not sure to understand the issue here. Your example output seems valid to me. |
While i review comments on #45, I'm linking your issue to #45 (comment) To describe the feedback from @mbark:
Problem: |
Possible solutions:
@d-enk suggested reporting an error when multiple services match the interface. Also, I would point out that since services injected in IoC containers are opaque, invoking an interface instead of a struct might lead to loading the wrong service if method signatures overlap. In that situation, an explicit alias is safer: |
Another option, maybe you just need a separate method that returns a list of all match? looks like related #33 |
to fix 1 problem #81 |
interface
(can't castnil
)I create a function that would temporarily delete InvokedAs result by OverrideNamedValue and tried to check the next not exist.
But I came across both 1 problem and samber/go-type-to-string#2
The text was updated successfully, but these errors were encountered: