4
0
Fork 0
mirror of https://github.com/rocky-linux/peridot.git synced 2024-12-30 05:50:56 +00:00
peridot/vendor/alexejk.io/go-xmlrpc/doc.go
2022-07-07 22:13:21 +02:00

22 lines
646 B
Go

/*
Package xmlrpc includes everything that is required to perform XML-RPC requests by utilizing familiar rpc.Client interface.
The simplest use-case is creating a client towards an endpoint and making calls:
c, _ := NewClient("https://bugzilla.mozilla.org/xmlrpc.cgi")
resp := &struct {
BugzillaVersion struct {
Version string
}
}{}
err = c.Call("Bugzilla.version", nil, resp)
fmt.Printf("Version: %s\n", resp.BugzillaVersion.Version)
Additional customizations, such as setting custom headers, changing User-Agent or modifying HTTP Client used to make calls,
pass corresponding Options to NewClient function.
*/
package xmlrpc