A Go language binding for encoding and decoding data in the bencode format that is used by the BitTorrent peer-to-peer file sharing protocol.
Get the package
go get -u github.com/jackpal/bencode-go
import bencode "github.com/jackpal/bencode-go"
data := myAwesomeObject{}
err := bencode.Unmarshal(reader, &data)
data, err := bencode.Decode(reader)
err := bencode.Marshal(writer, data)
http://godoc.org/github.com/jackpal/bencode-go
This project is licensed under the Go Authors standard license. (See the LICENSE file for details.)