>From http://www.gorillatoolkit.org/pkg/rpc for implementing a particular method that does RPC
The method has three arguments: *http.Request, *args, *reply. > But if the arg's that are supposed to be passed to the method are: arg 1 - a string arg 2 - an array of any type ( which I believe in go would be interface{} ? ) So is it possible to adapt arg 1 & 2 to conform to the function signature required for gorilla rpc, *args? i.e. I'm not supposed to change arg 1 & arg 2, they get passed in like that, how to make it fit the function signature to be passed into the function to process them? fyi, for background reference, I'm using https://github.com/divan/gorilla-xmlrpc, and the XML-RPC input I'm supposed to get is: <methodCall><methodName>RunKeyword</methodName> <params> <param><value><string>KeywordName</string></value></param> <param><value><array><data> <value><string>keyword_arg1</string></value> <value><string>keyword_arg2</string></value> </data></array></value></param> </params></methodCall> the gorilla-xmlrpc example shows a sample function of func (h *HelloService) Say(r *http.Request, args *struct{Who string}, reply *struct{Message string}) error { ... } with input passed to it like <methodCall> <methodName>HelloService.Say</methodName> <params> <param><value><struct><member> <name>Who</name> <value><string>XMLTest</string></value> </member></struct></value></param> <param><value><struct><member> <name>Code</name> <value><int>123</int></value> </member></struct></value></param> </params> </methodCall> -- 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.