This commit is contained in:
Dmitry Maksimov 2012-09-21 13:24:55 +04:00
Родитель 0a503c639d
Коммит 1130b940d7
2 изменённых файлов: 33 добавлений и 7 удалений

33
README.md Normal file
Просмотреть файл

@ -0,0 +1,33 @@
## Overview
xmlrpc is an implementation of XMLRPC protocol in Go language. Currently
it implements only client side part of XMLRPC.
## Installation
To install xmlrpc package run `go get github.com/kolo/xmlrpc`. To use
it in application add `"github.com/kolo/xmlprc"` string to `import`
statement.
## Usage
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](http://golang.org/pkg/net/http/#Transport)
object, it can be used to get more control over connection options.
## Implementation details
xmlrpc package contains clientCodec type, that implements [rpc.ClientCodec](http://golang.org/pkg/net/rpc/#ClientCodec)
interface of [net/rpc](http://golang.org/pkg/net/rpc) package.
## Contribution
Feel free to fork the project, submit pull requests, ask questions.
## Authors
Dmitry Maksimov (dmtmax@gmail.com)

Просмотреть файл

@ -1,7 +0,0 @@
require 'sinatra'
post '/' do
p request
end
Sinatra::Application.run!