Simple bloom filter implementation for the GoLang programming language
go get github.com/scottjr632/go-bloom-filter
import "github.com/scottjr632/go-bloom-filter"
estimatedNumberOfItems, maxFailureRate := 3000, 0.01
bf := bloomfilter.NewFromEstimate(estimatedNumberOfItems, maxFailureRate)
sizeOfFilter, numHashFns := 128, 3
bf := bloomfilter.New(sizeOfFilter, numHashFns)
valueToAdd := 'https://maliciousurl.xyz'
bf.Add(valueToAdd)
valueToCheck := 'https://maliciousurl.xyz'
bf.Check(valueToCheck) // -> true
bf.Check('value that has not been set') // -> false