{"id":15576334,"url":"https://github.com/damnever/bitarray","last_synced_at":"2025-07-24T22:13:59.228Z","repository":{"id":57483061,"uuid":"69046275","full_name":"damnever/bitarray","owner":"damnever","description":"BitArray for Golang","archived":false,"fork":false,"pushed_at":"2019-07-23T12:22:03.000Z","size":9,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T19:51:21.362Z","etag":null,"topics":["bitarray","golang","hamming-weight"],"latest_commit_sha":null,"homepage":"https://github.com/damnever/bitarray","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/damnever.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":"2016-09-23T17:25:59.000Z","updated_at":"2024-10-04T16:57:47.000Z","dependencies_parsed_at":"2022-08-27T20:02:45.479Z","dependency_job_id":null,"html_url":"https://github.com/damnever/bitarray","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damnever%2Fbitarray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damnever%2Fbitarray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damnever%2Fbitarray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damnever%2Fbitarray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damnever","download_url":"https://codeload.github.com/damnever/bitarray/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248082785,"owners_count":21044975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bitarray","golang","hamming-weight"],"created_at":"2024-10-02T18:46:32.796Z","updated_at":"2025-04-09T17:50:20.005Z","avatar_url":"https://github.com/damnever.png","language":"Go","readme":"## BitArray for Golang [![Build Status](https://travis-ci.org/damnever/bitarray.svg?branch=master)](https://travis-ci.org/damnever/bitarray) [![GoDoc](https://godoc.org/github.com/damnever/bitarray?status.svg)](https://godoc.org/github.com/damnever/bitarray)\n\n### Installation\n\n```\ngo get github.com/damnever/bitarray\n```\n\n### Example\n\n```go\npackage main\n\nimport \"github.com/damnever/bitarray\"\n\nfunc main() {\n    bits := bitarray.New(64)\n\n    bits.Put(8, 1)  // set value of the bit to 1 by index 8, return old bit.\n    bits.Get(8)     // get value of the bit by index 8\n    bits.Set(9, 16) // set all bits to 1 between 9 and 16 , both 9 and 16 included.\n    bits.Count()   // get the count of bit 1\n    // Clear/Not/Eq/Leq/Lt/ToArray ...\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamnever%2Fbitarray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamnever%2Fbitarray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamnever%2Fbitarray/lists"}