aboutsummaryrefslogtreecommitdiff
path: root/bencode/bencode.go
blob: 8675f357805f916a7e085a64912d7c32a6b60b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package bencode

// mapping / limitations
// dict -> struct
// list -> aray of same type

type itemType int

const (
	itemError itemType = iota
	itemDict
	itemList
	itemNumber
	itemString
)