{"id":39386213,"url":"https://github.com/0xc0392b/bfield","last_synced_at":"2026-01-18T03:03:34.318Z","repository":{"id":57598959,"uuid":"148399061","full_name":"0xc0392b/bfield","owner":"0xc0392b","description":"Bit field data structure for Go","archived":false,"fork":false,"pushed_at":"2019-10-10T19:14:44.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-07-11T20:45:29.341Z","etag":null,"topics":["bit-manipulation","bitfield","data-structures","go","golang"],"latest_commit_sha":null,"homepage":"","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/0xc0392b.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":"2018-09-12T00:47:43.000Z","updated_at":"2023-07-11T20:45:29.342Z","dependencies_parsed_at":"2022-09-26T19:53:34.909Z","dependency_job_id":null,"html_url":"https://github.com/0xc0392b/bfield","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/0xc0392b/bfield","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xc0392b%2Fbfield","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xc0392b%2Fbfield/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xc0392b%2Fbfield/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xc0392b%2Fbfield/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xc0392b","download_url":"https://codeload.github.com/0xc0392b/bfield/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xc0392b%2Fbfield/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28528026,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bit-manipulation","bitfield","data-structures","go","golang"],"created_at":"2026-01-18T03:03:34.203Z","updated_at":"2026-01-18T03:03:34.295Z","avatar_url":"https://github.com/0xc0392b.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bfield\n### Bit field data structure for Go\n\n#### Methods\n* Toggle(index) -\u003e toggles the state of a bit at a specific index\n* Get(index) -\u003e retrieve the state of a bit at a specific index\n* Set(index, state) -\u003e sets the state of a bit at a specific index\n\n#### Installation\n```text\ngo get github.com/williamsandytoes/bfield\n```\n\n#### Example usage\n```go\npackage main\n\nimport (\n  \"fmt\"\n  \"github.com/williamsandytoes/bfield\"\n)\n\nfunc main() {\n    b := bfield.New(1000)\n\n    b.Toggle(10)\n    fmt.Println(b.Get(10)) // true\n    b.Toggle(10)\n    fmt.Println(b.Get(10)) // false\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xc0392b%2Fbfield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xc0392b%2Fbfield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xc0392b%2Fbfield/lists"}