{"id":13411390,"url":"https://github.com/amallia/go-ef","last_synced_at":"2025-03-14T17:30:47.450Z","repository":{"id":57496800,"uuid":"104418115","full_name":"amallia/go-ef","owner":"amallia","description":"A Go implementation of the Elias-Fano encoding","archived":false,"fork":false,"pushed_at":"2024-06-16T01:33:26.000Z","size":29,"stargazers_count":31,"open_issues_count":1,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-07-31T20:45:41.316Z","etag":null,"topics":["compression","elias-fano","eliasfano","encoding"],"latest_commit_sha":null,"homepage":null,"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/amallia.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":"2017-09-22T01:47:16.000Z","updated_at":"2024-02-23T19:57:55.000Z","dependencies_parsed_at":"2024-11-01T05:31:05.493Z","dependency_job_id":null,"html_url":"https://github.com/amallia/go-ef","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amallia%2Fgo-ef","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amallia%2Fgo-ef/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amallia%2Fgo-ef/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amallia%2Fgo-ef/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amallia","download_url":"https://codeload.github.com/amallia/go-ef/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243618607,"owners_count":20320265,"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":["compression","elias-fano","eliasfano","encoding"],"created_at":"2024-07-30T20:01:13.332Z","updated_at":"2025-03-14T17:30:47.179Z","avatar_url":"https://github.com/amallia.png","language":"Go","funding_links":[],"categories":["Data Structures and Algorithms","数据结构与算法","Data Structures","\u003cspan id=\"数据结构-data-structures\"\u003e数据结构 Data Structures\u003c/span\u003e","Generators","数据结构`go语言实现的数据结构与算法`","数据结构","Data Integration Frameworks","Uncategorized"],"sub_categories":["Bit-packing and Compression","Bit-packing和压缩","Advanced Console UIs","Standard CLI","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","标准 CLI"],"readme":"# go-ef \n_A Go implementation of the Elias-Fano encoding_\n\n[![Build Status](https://travis-ci.org/amallia/go-ef.svg?branch=master)](https://travis-ci.org/amallia/go-ef) [![GoDoc](https://godoc.org/github.com/amallia/go-ef?status.svg)](https://godoc.org/github.com/amallia/go-ef) [![Go Report Card](https://goreportcard.com/badge/github.com/amallia/go-ef)](https://goreportcard.com/report/github.com/amallia/go-ef) ![cover.run go](https://cover.run/go/github.com/amallia/go-ef.svg)\n### Example\n```go\npackage main\nimport (\n    \"fmt\"\n    \"github.com/amallia/go-ef\"\n    \"os\"\n)\n\nfunc main() {\n    array := []uint64{1,5,10}\n    size := len(array)\n    max := array[size-1]\n    obj := ef.New(max, size)\n\n    obj.Compress(array)\n\n    v, err := obj.Next()\n    if err != nil {\n        fmt.Println(err)\n        os.Exit(1)\n    }\n    fmt.Println(v) // 1\n\n    obj.Next()\n    fmt.Println(obj.Value()) // 5\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famallia%2Fgo-ef","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famallia%2Fgo-ef","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famallia%2Fgo-ef/lists"}