Documentation
¶
Index ¶
Constants ¶
View Source
const ( NULL = iota DICT LIST INT STRING MaxDepth = 100 )
Bencode types.
Variables ¶
View Source
var ( ErrMaxDepth = errors.New("stack overflow") ErrDicWithNonStringKey = errors.New("dictionary's key must be a byte string") )
Some vars.
Functions ¶
This section is empty.
Types ¶
type B ¶
type B struct {
// contains filtered or unexported fields
}
B illustrates a bencode struct.
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
A Decoder reads and decodes B values from an input stream.
func NewDecoder ¶
NewDecoder news a Decoder from given io.Reader.
Click to show internal directories.
Click to hide internal directories.