Registry / utility / riobard-go-bloom

riobard-go-bloom

JSON →
library0.0.0-20200614022211-cdc8013cb5b3gogounverified

Bloom Filter implementation using double hashing for efficient set membership testing.

go get github.com/riobard/go-bloom
INSTALL
IMPORT
SIG · RIOBARD-GO-BLOOM
R
riobard-go-bloom
utilitygov0.0.0-20200614022211-cdc8013cb5b3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

bloom
github.com/riobard/go-bloom

Create a Bloom filter and test membership

package main import ( "fmt" "github.com/riobard/go-bloom" ) func main() { filter := bloom.New(1000, 3) filter.Add([]byte("test")) fmt.Println(filter.Test([]byte("test"))) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20200614022211-cdc8013cb5b3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
riobard-go-bloom — go get riobard-go-bloom · libregistry