bencode

package module
v0.0.0-...-9230d95 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 5 Imported by: 0

README

Bencode

A bencode encode and decode library implement by go. Better performance and more friendly.

  • Decode
  • Encode
  • UnMarshal

Install


go get github.com/nonzzz/bencode

LICENSE

MIT

Author

Kanno

Documentation

Index

Constants

View Source
const (
	NumericStart   = 0x69 // i
	StringDelim    = 0x3A // :
	DirectroyStart = 0x64 // d
	SliceStart     = 0x6c // l
	EndOfType      = 0x65 // e
	PlusSign       = 0x2B // +
	MinusSign      = 0x2D // -
)

Variables

This section is empty.

Functions

func Decode

func Decode(buf []byte) (s interface{}, err error)

func Encode

func Encode(input interface{}) (s []byte, err error)

func UnMarshal

func UnMarshal(data interface{}, stu interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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