Bencode is a library for encoding/decoding bencoded data into Go data structures. The api is designed to be similar to the JSON api in the Go standard library.
Documentation at http://zeebo.github.com/bencode or http://gopkgdoc.appspot.com/pkg/github.com/zeebo/bencode