Skip to content

nabilanam/bencode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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()

Releases

No releases published

Packages

No packages published

Languages