Skip to content
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

Feature Request: interface isAvailable bool #200

Open
maltegrosse opened this issue Apr 20, 2020 · 1 comment
Open

Feature Request: interface isAvailable bool #200

maltegrosse opened this issue Apr 20, 2020 · 1 comment

Comments

@maltegrosse
Copy link

maltegrosse commented Apr 20, 2020

Hello,

is it possible to add a bool helper function which returns if the interface is available? Not the error "no interface available....."

It would be helpful for me as i need to do some automatically testing if various interfaces are available in different modes of my application...

@jsouthworth
Copy link
Member

Sure, if the target service implements introspection one could do this pretty easily. Adding it as a method on the object structure would be a good addition. (*Object).Implements(iface string) bool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants