I'm trying to factor my app to reduce some duplication and to do this,
I'm trying to define a function type that takes a bunch of well know
arguments and returns interface{}. However, the concrete functions I'm
passing all return an array of a specific type. The go compiler does
not like this.
What I'd like to do is:
http://play.golang.org/p/M1vEFHcgZM
But I can do the following to fix the issue:
http://play.golang.org/p/n37_NUu5Tr
However, I'd like not to have to dumb down the functions that are being called.
Is there a better way to achieve this?
Cheers,
Ben
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.