Hi, The rpc documentation says that a remote rpc method can be registered if the second argument (response) is a pointer.
https://golang.org/pkg/net/rpc/#Server.Register Does anyone know if there is a way of having an interface declared as this response type and then assign pointers to it that satisfy that interface? When I try to do it the compiler complains asking for a pointer type, but considering an interface is already "kind" of a pointer* it seems to me it can be possible. I guess it would be very useful to have generic remote functions that are able to return any type that implements an interface, the same way local functions do. Thanks, Pablo * http://stackoverflow.com/questions/13511203/why-cant-i-assign-a-struct-to-an-interface -- 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.