Popularity
2.7
Growing
Activity
0.0
Stable
31
5
7

Programming language: Go
License: MIT License
Tags: Data Structures    

go-ef alternatives and similar packages

Based on the "Data Structures" category.
Alternatively, view go-ef alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of go-ef or a related project?

Add another 'Data Structures' Package

README

go-ef

A Go implementation of the Elias-Fano encoding

Build Status GoDoc Go Report Card cover.run go

Example

package main
import (
    "fmt"
    "github.com/amallia/go-ef"
    "os"
)

func main() {
    array := []uint64{1,5,10}
    size := len(array)
    max := array[size-1]
    obj := ef.New(max, size)

    obj.Compress(array)

    v, err := obj.Next()
    if err != nil {
        fmt.Println(err)
        os.Exit(1)
    }
    fmt.Println(v) // 1

    obj.Next()
    fmt.Println(obj.Value()) // 5
}