On Tue, 4 Oct 2016 08:54:32 -0700 (PDT)
David Luu <manga...@gmail.com> wrote:

> >> Why do you care? 
> 
> I personally wouldn't but a (test framework) protocol built on top of 
> XML-RPC that I want to interface to expects the following response
> back:
> 
> <methodResponse>
>   <params>
>     <param>
>       <value><struct>
>         <member><name>return</name>
[...]
> and the only XML-RPC (server) package for go I've 
> found: https://github.com/divan/gorilla-xmlrpc, guess what it uses to
> map that kind of XML-RPC data structure to? A go struct. That was
> looking over the README, haven't delved into the code for that
> package, but there might not be other alternative options w/o
> modifying that package's code. A go map might have been more flexible
> to workaround naming issues.
[...]

Can't you not use the standard way to deal with this -- using struct
tags?

  type response struct {
    Return string `xml:"return"`
    ...
  }

-- 
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.

Reply via email to