We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00fe33a commit 922b3b9Copy full SHA for 922b3b9
1 file changed
README.md
@@ -49,7 +49,7 @@ func main() {
49
Profile Profile `bencode:"profile"`
50
}
51
52
- input := []byte("d8:username8:johndoe5:email15:john@example.com7:profiled4:name9:John Doe3:agei30e7:hobbiesl7:guitar6:travel5:cookingeee")
+ input := []byte("d5:email16:john@example.com7:profiled3:agei42e7:hobbiesl6:guitar6:travel7:cookinge4:name4:Johne8:username7:johndoee")
53
var user User
54
55
err := bencode.Decode(input, &user)
0 commit comments