bencode

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 7 Imported by: 0

README

dgo-bencode

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidType    = errors.New("invalid type for marshal")
	ErrStrLength      = errors.New("expected a valid string length")
	ErrStrIdentifier  = errors.New("expected str identifier ':'")
	ErrNumIdentifier  = errors.New("expected num identifier 'i'")
	ErrEndIdentifier  = errors.New("expected end identifier 'e'")
	ErrInvalidBencode = errors.New("invalid bencode")
)

Functions

func Marshal

func Marshal(val any) (ret string, err error)

func Unmarshal

func Unmarshal(r io.Reader) (ret any, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL