Documentation
¶
Overview ¶
Package bencode implements encoding and decoding of values as defined in BEP 3.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SyntaxError ¶
type SyntaxError struct { Offset int64 // error occurred after read Offset byts // contains filtered or unexported fields }
A SyntaxError is a description of a bencoding syntax error.
func (*SyntaxError) Error ¶
func (e *SyntaxError) Error() string
type UnmarshalTypeError ¶
type UnmarshalTypeError struct { Value string // description of bencoding value Type reflect.Type // type of Go value if could not be assigned to }
An UnmarshalTypeError describes a bencoding value that was not appropriate for a value of a specific Go type.
func (*UnmarshalTypeError) Error ¶
func (e *UnmarshalTypeError) Error() string
type UnsupportedTypeError ¶
An UnsupportedTypeError is returned by Marshal when attempting to encode an unsupported value type.
func (*UnsupportedTypeError) Error ¶
func (e *UnsupportedTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.