-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
reflect.InterfaceValue does not have Implements(*reflect.InterfaceType) bool method #327
Labels
Comments
Given a reflect.Value v and a desire to see if the underlying object implements interface Foo, use the value's Interface() method to extract an interface object that can be tested using a type assertion. if foo, ok := v.Interface().(Foo) { use foo } That should give you what you need. -rob Status changed to WontFix. |
You don't really need the conditional set, just the test. Owner changed to r...@golang.org. Status changed to LongTerm. |
This issue was closed by revision e1ee3b5. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by wmundt42:
The text was updated successfully, but these errors were encountered: