by ThePhysicist · 9y ago · 0 comments
https://github.com/DCSO/bloom (Go version)
https://github.com/DCSO/flor (Python version)
The Go version comes with a command line tool that allows you to use Bloom filters on the shell.
The abstractions are supposed to be self explanatory and simple and thus the variable names do not have to serve as documentation.
Ironically, I see several "input io.Reader" sort of things in that code, where as "number of hash functions" is k. A few minutes with go-rename would clean that right up, though.
Go to https://golang.org/pkg/net/http/#Client and use your browser to search for the string "struct {" and have a look. https://golang.org/pkg/os/ is another page with a number of struct declarations.