{"id":20481575,"url":"https://github.com/newtoallofthis123/huffman","last_synced_at":"2026-06-10T14:31:04.829Z","repository":{"id":250691216,"uuid":"835099882","full_name":"newtoallofthis123/huffman","owner":"newtoallofthis123","description":"Huffman Encoding Library Implemented in Go","archived":false,"fork":false,"pushed_at":"2024-08-30T20:38:18.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T15:51:15.104Z","etag":null,"topics":["go-library","golang","huffman-coding","huffman-compression-algorithm","huffman-go"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/newtoallofthis123/huffman","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/newtoallofthis123.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-29T06:52:03.000Z","updated_at":"2024-08-30T20:38:12.000Z","dependencies_parsed_at":"2025-01-16T04:12:29.693Z","dependency_job_id":"5927e640-3a11-4fb8-905f-f6f2859861a5","html_url":"https://github.com/newtoallofthis123/huffman","commit_stats":null,"previous_names":["newtoallofthis123/huffman"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/newtoallofthis123/huffman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newtoallofthis123%2Fhuffman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newtoallofthis123%2Fhuffman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newtoallofthis123%2Fhuffman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newtoallofthis123%2Fhuffman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/newtoallofthis123","download_url":"https://codeload.github.com/newtoallofthis123/huffman/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newtoallofthis123%2Fhuffman/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34157453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["go-library","golang","huffman-coding","huffman-compression-algorithm","huffman-go"],"created_at":"2024-11-15T16:08:59.014Z","updated_at":"2026-06-10T14:31:04.812Z","avatar_url":"https://github.com/newtoallofthis123.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Huffman\n\nHuffman encoding library implemented in Go\nThis does not include any type of Reader or Writer although it is planned.\n\n## Installation\n\nThis is a native implementation of the Huffman encoding algorithm in Go. To install it, you can use the `go get` command:\n\n```bash\ngo get github.com/newtoallofthis123/huffman\n```\n\n## Example\n\n```go\npackage main\n\nfunc main(){\n chars := []rune{'A', 'A', 'A', 'B', 'B', 'B', 'B', 'B', 'C', 'C', 'C', 'C', 'C', 'C', 'D', 'D', 'D', 'D', 'E', 'E'}\n // This is needed since the library is implemented on generic slices\n interfaces := huffman.ConvertToInterface(chars)\n\n h := huffman.FromList(interfaces)\n res := h.Encode()\n r := h.Decode(res)\n\n fmt.Println(r, res)\n}\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewtoallofthis123%2Fhuffman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnewtoallofthis123%2Fhuffman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewtoallofthis123%2Fhuffman/lists"}