Go to file
2013-12-03 22:40:52 -05:00
bencode_test.go Package bencode refactored to use algorithms from package json. 2013-12-03 22:36:59 -05:00
decode.go Package bencode refactored to use algorithms from package json. 2013-12-03 22:36:59 -05:00
encode.go Package bencode refactored to use algorithms from package json. 2013-12-03 22:36:59 -05:00
LICENSE Initial commit 2010-01-06 23:38:33 +08:00
parse.go Hide Builder, StringValue, and StringValueArray types. 2012-09-15 19:46:44 -07:00
README.md Package bencode refactored to use algorithms from package json. 2013-12-03 22:36:59 -05:00
scanner.go Package bencode refactored to use algorithms from package json. 2013-12-03 22:36:59 -05:00
struct.go Package bencode refactored to use algorithms from package json. 2013-12-03 22:36:59 -05:00
tags.go forgot to add tags.go 2013-12-03 22:40:52 -05:00

Go-Bencode

A standard Go interface to bencode, there are basically six fuctions:

  • Marshal
  • Unmarshal
  • NewEncoder
  • NewEncoder.Encode
  • NewDecoder
  • Decoder.Decode

The other bencode package is https://github.com/zeebo/bencode, as of 2013-12-03 this package is slightly faster but perhaps less thoroughly tested.