{"id":26294646,"url":"https://github.com/h1wind/bencode-go","last_synced_at":"2025-12-15T00:15:33.912Z","repository":{"id":210065388,"uuid":"380688054","full_name":"hitoor/bencode-go","owner":"hitoor","description":"DHT bencode encoding","archived":false,"fork":false,"pushed_at":"2021-07-01T01:37:31.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T08:33:27.390Z","etag":null,"topics":["bencode","bittorrent","bt","dht","p2p"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hitoor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-06-27T08:25:03.000Z","updated_at":"2024-05-30T11:26:09.000Z","dependencies_parsed_at":"2023-11-30T16:43:19.451Z","dependency_job_id":null,"html_url":"https://github.com/hitoor/bencode-go","commit_stats":null,"previous_names":["h1wind/bencode-go","h1zzz/bencode-go","hitoor/bencode-go"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitoor%2Fbencode-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitoor%2Fbencode-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitoor%2Fbencode-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitoor%2Fbencode-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hitoor","download_url":"https://codeload.github.com/hitoor/bencode-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681024,"owners_count":20330152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bencode","bittorrent","bt","dht","p2p"],"created_at":"2025-03-15T03:31:21.024Z","updated_at":"2025-12-15T00:15:33.863Z","avatar_url":"https://github.com/hitoor.png","language":"Go","readme":"# go-bencode\n\n## example\n\n```sh\ngo get github.com/h1zzz/bencode-go\n```\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    bencode \"github.com/h1zzz/bencode-go\"\n)\n\nfunc main() {\n    // Decode\n    data := []byte(\"d4:porti6881e1:t2:aa1:y1:e1:ad2:id20:abcdefghij01234567896:target20:mnopqrstuvwxyz123456e1:eli201e23:A Generic Error Ocurredee\")\n    r, err := bencode.Decode(data)\n    if err != nil {\n        panic(err)\n    }\n    fmt.Printf(\"%#v\\n\", r)\n\n    // Encode\n    v, err := bencode.Encode(r)\n    if err != nil {\n        panic(err)\n    }\n    fmt.Printf(\"%s\\n\", string(v))\n}\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh1wind%2Fbencode-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh1wind%2Fbencode-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh1wind%2Fbencode-go/lists"}