{"id":46758215,"url":"https://github.com/scottjr632/go-bloom-filter","last_synced_at":"2026-03-09T21:37:14.565Z","repository":{"id":57505282,"uuid":"231816702","full_name":"scottjr632/go-bloom-filter","owner":"scottjr632","description":"Simple bloom filter implementation for the GoLang programming language","archived":false,"fork":false,"pushed_at":"2020-07-01T19:24:42.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T10:09:21.634Z","etag":null,"topics":["bloom","bloom-filter","bloomfilter","bloomfilter-go","filter","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scottjr632.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-04T19:24:37.000Z","updated_at":"2024-06-20T10:09:21.635Z","dependencies_parsed_at":"2022-08-22T09:00:28.982Z","dependency_job_id":null,"html_url":"https://github.com/scottjr632/go-bloom-filter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scottjr632/go-bloom-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottjr632%2Fgo-bloom-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottjr632%2Fgo-bloom-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottjr632%2Fgo-bloom-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottjr632%2Fgo-bloom-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottjr632","download_url":"https://codeload.github.com/scottjr632/go-bloom-filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottjr632%2Fgo-bloom-filter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30312206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bloom","bloom-filter","bloomfilter","bloomfilter-go","filter","golang"],"created_at":"2026-03-09T21:37:13.860Z","updated_at":"2026-03-09T21:37:14.550Z","avatar_url":"https://github.com/scottjr632.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoLang Bloom Filter \n[![codecov](https://codecov.io/gh/scottjr632/go-bloom-filter/branch/master/graph/badge.svg)](https://codecov.io/gh/scottjr632/go-bloom-filter) [![CircleCI](https://circleci.com/gh/scottjr632/go-bloom-filter.svg?style=svg)](https://circleci.com/gh/scottjr632/go-bloom-filter) \n\nSimple bloom filter implementation for the GoLang programming language  \n\n## Installing\n```bash\ngo get github.com/scottjr632/go-bloom-filter\n```\n\n### Importing\n```go\nimport \"github.com/scottjr632/go-bloom-filter\"\n```\n\n## Creating a new optimal filter \n```go\nestimatedNumberOfItems, maxFailureRate := 3000, 0.01\nbf := bloomfilter.NewFromEstimate(estimatedNumberOfItems, maxFailureRate)\n```\n\n### Creating a new filter\n```go\nsizeOfFilter, numHashFns := 128, 3\nbf := bloomfilter.New(sizeOfFilter, numHashFns)\n```\n\n## Handling values\n\n#### Adding a value to the filter\n```go\nvalueToAdd := 'https://maliciousurl.xyz'\nbf.Add(valueToAdd)\n```\n\n#### Checking if a value has been set\n```go\nvalueToCheck := 'https://maliciousurl.xyz'\nbf.Check(valueToCheck) // -\u003e true\n\nbf.Check('value that has not been set') // -\u003e false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottjr632%2Fgo-bloom-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottjr632%2Fgo-bloom-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottjr632%2Fgo-bloom-filter/lists"}