bloomfilter is a Go package that provides Bloom Filter operations. murmur3 hash function is used for hashing.
go get github.com/gozeloglu/bloomfilterpackage 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")})
}