Skip to content

gozeloglu/bloomfilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bloomfilter

bloomfilter is a Go package that provides Bloom Filter operations. murmur3 hash function is used for hashing.

Installation

go get github.com/gozeloglu/bloomfilter

Usage

package main

import (
	"fmt"
	
	"github.com/gozeloglu/bloomfilter"
)

func main() {
	bf := bloomfilter.New(0.01, 1_000_000)
	bf.Insert([]byte("hello"))
	fmt.Println(bf.Exists([]byte("hello")))

	bf.InsertMultiple([][]byte{[]byte("first"), []byte("second"), []byte("third")})
}

About

Bloom filter implementation in Go. Hashed by murmur3.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages