Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattn/go-xmlrpc
xmlrpc interface for go
https://github.com/mattn/go-xmlrpc
go xmlrpc
Last synced: 4 days ago
JSON representation
xmlrpc interface for go
- Host: GitHub
- URL: https://github.com/mattn/go-xmlrpc
- Owner: mattn
- License: mit
- Created: 2011-08-09T15:44:48.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2019-10-30T18:37:58.000Z (about 5 years ago)
- Last Synced: 2024-12-23T09:29:15.598Z (11 days ago)
- Topics: go, xmlrpc
- Language: Go
- Homepage: http://mattn.kaoriya.net/
- Size: 22.5 KB
- Stars: 31
- Watchers: 6
- Forks: 18
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-xmlrpc
xmlrpc interface for go
## Usage
```go
package mainimport (
"github.com/mattn/go-xmlrpc"
"fmt"
"log"
)func main() {
res, e := xmlrpc.Call(
"http://your-blog.example.com/xmlrpc.php",
"metaWeblog.getRecentPosts",
"blog-id",
"user-id",
"password",
10)
if e != nil {
log.Fatal(e)
}
for _, p := range res.(xmlrpc.Array) {
for k, v := range p.(xmlrpc.Struct) {
fmt.Printf("%s=%v\n", k, v)
}
fmt.Println()
}
}
```## Installation
```
$ go get github.com/mattn/go-xmlrpc
```## License
MIT
## Author
Yasuhiro Matsumoto (a.k.a. mattn)