Go to file
Emery Hemingway a1653e0f3a fixed lists
2013-12-06 02:29:22 -05:00
bencode_test.go Fixed skipping, better docs 2013-12-05 14:14:55 -05:00
decode.go fixed lists 2013-12-06 02:29:22 -05:00
encode.go Fixed skipping, better docs 2013-12-05 14:14:55 -05:00
example_test.go dictionaries are encoded alphabetically, made examples 2013-12-05 14:37:19 -05:00
LICENSE Initial commit 2010-01-06 23:38:33 +08:00
README.md Package bencode refactored to use algorithms from package json. 2013-12-03 22:36:59 -05:00
scanner.go fixed lists 2013-12-06 02:29:22 -05:00
struct.go dictionaries are encoded alphabetically, made examples 2013-12-05 14:37:19 -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.