aboutsummaryrefslogtreecommitdiff
path: root/bencode/bencode.go
blob: f1fce2f6f373987429ca801bb915158584233a8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package bencode

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

type itemType int

const (
	itemError itemType = iota
	itemDict
	itemList
	itemNumber
	itemString
)

func Marshal(v interface{}) ([]byte, error) {
	return nil, nil
}

func Unmarshal(data []byte, v interface{}) error {
	return nil
}