Commit graph

17 commits

Author SHA1 Message Date
Vincent Batts
0eb8ce1253 move bencode to subdirectory
making room for other packages
2014-08-14 14:27:17 -04:00
Jack Palevich
047893b8ff Support both old and new struct tag syntax.
Use "bencode" as the key.
2014-06-01 09:15:41 -07:00
Jack Palevich
25c99088bf Fix incorrect documentation.
(Left over from copy-and-paste from Go's JSON encoder/decode doc.)
2012-09-15 19:56:53 -07:00
Jack Palevich
5c36da2622 Hide Builder, StringValue, and StringValueArray types.
No need to export these types.
2012-09-15 19:46:44 -07:00
Jack Palevich
b4ca4a1e0b Fix documentation.
Hide non-essential types and functions.
2012-09-15 19:00:31 -07:00
Yves Junqueira
9af83c7cd1 Fix remaining bencode tests.
I'm not sure if I'm doing the right thing, though.
2012-07-29 17:59:03 +02:00
Yves Junqueira
7f9f262959 bencode fixes.
map->struct fixed.
map->struct+map fixed.
2012-07-29 15:29:17 +02:00
Yves Junqueira
cf16bc67de Start fixing TestUnmarshal.
Fixed unmarshalling for int, strings and slices. TODO: Fix maps.

Related to issue #4.
2012-07-16 02:29:17 +02:00
Yves Junqueira
5c02c4aa77 Update bencode for weekly.2011-12-06 2011-12-17 20:36:20 +01:00
Chidambaram Annamalai
68da078750 Fixes for latest version of Go (2011 Feb)
- bytes.AddBytes replaced by append()
- reflect.ArrayCopy renamed to reflect.Copy
2011-02-12 13:47:47 +05:30
Yves Junqueira
f329c5064b gofmt 2010-07-11 01:06:14 +02:00
Michael Meier
9e6ae66fe5 make bencode adhere to new reflection interface 2010-06-29 01:07:52 +02:00
Jack Palevich
d48a378005 Another gofmt pass. 2010-01-21 14:39:57 +08:00
Jack Palevich
f81cd34e34 Skip nil values when marshaling. 2010-01-20 23:20:25 +08:00
Jack Palevich
b1f8c9d7a7 Run code through gofmt. 2010-01-20 12:53:53 +08:00
Jack Palevich
f980a9f931 Make it a runtime error to try and unmarshal into a value.
Thanks to Rob Pike for the suggestion and code.
2010-01-07 12:11:33 +08:00
Jack Palevich
0804ed1920 Initial commit 2010-01-06 23:38:33 +08:00