package
module
Version:
v0.0.0-...-9230d95
Opens a new window with list of versions in this module.
Published: Aug 29, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Bencode
A bencode encode and decode library implement by go. Better performance and more friendly.
Install
go get github.com/nonzzz/bencode
LICENSE
MIT
Author
Kanno
Documentation
¶
View Source
const (
NumericStart = 0x69
StringDelim = 0x3A
DirectroyStart = 0x64
SliceStart = 0x6c
EndOfType = 0x65
PlusSign = 0x2B
MinusSign = 0x2D
)
func Decode(buf []byte) (s interface{}, err error)
func Encode(input interface{}) (s []byte, err error)
func UnMarshal(data interface{}, stu interface{}) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.