package
2.0.0-rc.2+incompatible
Repository: https://github.com/ttys3/chihaya.git
Documentation: pkg.go.dev

# Functions

Marshal returns the bencoding of v.
NewDecoder returns a new decoder that reads from r.
NewDict allocates the memory for a Dict.
NewEncoder returns a new encoder that writes to w.
NewList allocates the memory for a List.
Unmarshal deserializes and returns the bencoded value in buf.

# Structs

A Decoder reads bencoded objects from an input stream.
An Encoder writes bencoded objects to an output stream.

# Interfaces

Marshaler is the interface implemented by objects that can marshal themselves.

# Type aliases

Dict represents a bencode dictionary.
List represents a bencode list.