xmlrpc is an implementation of XMLRPC protocol in Go language. Currently it implements only client side part of XMLRPC.
To install xmlrpc package run go get github.com/kolo/xmlrpc
. To use
it in application add "github.com/kolo/xmlrpc"
string to import
statement.
client, _ := xmlrpc.NewClient("https://bugzilla.mozilla.org/xmlrpc.cgi", nil)
result := xmlrpc.Struct{}
client.Call("Bugzilla.version", nil, &result)
fmt.Printf("Version: %s\n", result["version"]) // Version: 4.0.8+
Second argument in is http.Transport object, it can be used to get more control over connection options.
xmlrpc package contains clientCodec type, that implements rpc.ClientCodec interface of net/rpc package.
Feel free to fork the project, submit pull requests, ask questions.
Dmitry Maksimov (dmtmax@gmail.com)