An open API service indexing awesome lists of open source software.

https://github.com/nabilanam/bencode

bencode implementation in go
https://github.com/nabilanam/bencode

bencode bencode-parser bencoder golang

Last synced: 13 days ago
JSON representation

bencode implementation in go

Awesome Lists containing this project

README

          

# bencode

bencode implementation in go

## example

Encode a map[string]interface{}
```
e := New(map[string]interface{}{
"spam": []interface{}{
"a",
"b",
},
})
e.Encode()
```
Decode a dictionary
```
d := New([]byte("d4:spaml1:a1:bee"))
d.Decode()
```