bencodebencode implementation in goexampleEncode a map[string]interface{}e := New(map[string]interface{}{ "spam": []interface{}{ "a", "b", }, }) e.Encode() Decode a dictionaryd := New([]byte("d4:spaml1:a1:bee")) d.Decode()