Documentation
¶
Overview ¶
Package bencode provides encoding and decoding of data in the Bencode format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode parses a bencoded byte slice and returns the decoded value as an interface or an error, if decoding fails.
func Encode ¶ added in v0.2.0
Encode encodes a value into a byte slice using bencode format. Supported types are string, int, slice, and map.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.