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
- Host: GitHub
- URL: https://github.com/nabilanam/bencode
- Owner: nabilanam
- Created: 2019-03-28T15:42:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-29T14:18:01.000Z (almost 7 years ago)
- Last Synced: 2025-08-14T11:17:57.372Z (6 months ago)
- Topics: bencode, bencode-parser, bencoder, golang
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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()
```