kolo / xmlrpc

Implementation of XMLRPC protocol in Go language.
MIT License
159 stars 94 forks source link

No decoding of response #66

Closed Garionion closed 5 years ago

Garionion commented 5 years ago

Hi, I am currently trying to speak with an Instance of the C3 Ticket Tracker and it works to the point where I get a valid answer when I call getTicketInfo (because its the easiest to start with) But although my type is correct, the response is not unpacked into the given struct. The struct just has the default values {0 0 0 0 0 false }

My code looks like this (Please be indulgent, this is my first attempt at Go.)

icholy commented 5 years ago

@Garionion in Go, struct fields need to exported (made public by upper-casing the first character) so reflection can access it. This should get you going in the right direction: https://play.golang.org/p/-CLarw8k_Q3

Garionion commented 5 years ago

Thank you very much :) It is working perfectly