1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package bencode
/*
func TestMarshal(t *testing.T) {
v := meta.Torrent{
Announce: "test",
AnnounceList: [][]string{
[]string{"test1", "test2"},
[]string{"test3"},
},
CreationDate: time.Now(),
Info: meta.Info{
Length: 1000,
Files: []meta.File{
{Path: []string{"A"}},
{Path: []string{"B"}},
},
Private: true,
},
}
out, err := Marshal(v)
if err != nil {
t.Error(err)
}
t.Logf("%q\n", string(out))
}
*/
|