zeebo/bencode — pull request #3 by cbodley (2012-08-19 20:45:47+00:00)
Title: fix for decodeDict

Using the following structs:
```go
type TrackerPeer struct {
PeerId string `bencode:"peer id"`
Ip string `bencode:"ip"`
Port int `bencode:"port"`
}
type TrackerResponse struct {
Interval int `bencode:"interval"`
Peers []TrackerPeer `bencode:"peers"`
}
```
I was able to encode TrackerResponse successfully, but got an error on decode. I spent some time debugging, and eventually found the bug in decodeDict().