kolo / xmlrpc

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

Can't retrieve info on the top 10 Python packages #47

Closed cclauss closed 5 years ago

cclauss commented 7 years ago

I can make this work in Python but I am struggling to replicate in Go...

https://github.com/cclauss/go-hacks/blob/master/pypiTop10.go Any tips?

https://warehouse.pypa.io/api-reference/xml-rpc/

oz commented 7 years ago

In your code result is an array, but the Go library expects a slice type, so change its type. Maybe:

var result []interface{}
cclauss commented 7 years ago

Thanks much @oz !!

var result []interface{} lets me get back 10 items when I request 10. Nice forward progress!

My remaining problem is to convert each item returned into type pkgInfo.