Skip to content

bttown/bloomfilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bloomfilter

a simple golang bloom filter

Install

go get -u github.com/bttown/bloomfilter

Usage

filter := New(10000)
var texts = []string{
    "中国食物真棒。",
    "중국 음식 정말 맛있다.",
    "Chinese food is delicious。",
    "中国の食べ物は本当においしいです",
}

for _, text := range texts {
    filter.Put(text)
    filter.MightContains(text)
}

Notice

only support string object now!

About

a simple golang bloom filter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages