I'm using Gorilla XMLRPC. As per the example,
func (h *HelloService) Say(r *http.Request,
args *struct{Who string},
reply *struct{Message string}) error {
reply.Message = "Hello, " + args.Who + "!"
return nil
}
and RPC.RegisterService(new(HelloService), "")
gives me a service HelloService.Say()
. I would like to have helloService.say()
. I was able to get the first part by modifying the register function to RPC.RegisterService(new(HelloService), "helloService")
. But I'm not able to make lowercase methods exported.
I understand golang allows only uppercase methods to be exported. So is there any work-around for lowercase methods?