{"id":38974083,"url":"https://github.com/khavishbhundoo/collections","last_synced_at":"2026-01-17T16:44:01.076Z","repository":{"id":313541944,"uuid":"1047343429","full_name":"khavishbhundoo/collections","owner":"khavishbhundoo","description":"A collection of common data structures for Go in both thread safe and non-thread safe variants","archived":false,"fork":false,"pushed_at":"2025-09-14T15:56:04.000Z","size":93,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-14T17:41:58.334Z","etag":null,"topics":["conccurent","data-structures","golang","map","queue","stack"],"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/khavishbhundoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-30T07:49:26.000Z","updated_at":"2025-09-14T15:56:00.000Z","dependencies_parsed_at":"2025-09-06T20:23:56.666Z","dependency_job_id":"40544dd4-9cbc-49d2-a511-12b9105d8824","html_url":"https://github.com/khavishbhundoo/collections","commit_stats":null,"previous_names":["khavishbhundoo/collections"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/khavishbhundoo/collections","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khavishbhundoo%2Fcollections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khavishbhundoo%2Fcollections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khavishbhundoo%2Fcollections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khavishbhundoo%2Fcollections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khavishbhundoo","download_url":"https://codeload.github.com/khavishbhundoo/collections/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khavishbhundoo%2Fcollections/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: 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":["conccurent","data-structures","golang","map","queue","stack"],"created_at":"2026-01-17T16:44:00.462Z","updated_at":"2026-01-17T16:44:01.068Z","avatar_url":"https://github.com/khavishbhundoo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Reference](https://pkg.go.dev/badge/github.com/khavishbhundoo/collections.svg)](https://pkg.go.dev/github.com/khavishbhundoo/collections)\n\n# Collections\nA collection of common data structures for Go in both thread safe and non-thread safe variants.The documentation, \nexample usage are available in their own dedicated page. [Benchmark](benchmark/benchmark.txt) results are available for \nall the data structures. \n\n## Installation \n\n```bash\ngo get -u github.com/khavishbhundoo/collections\n```\n\n## Design Principles\n\n- General-Purpose Design \n\nThese data structures are designed to perform well enough across a wide range of use cases rather than being optimized \n  for a type of operation.\n\n- Zero-Value Usability\n\nAll data structures are immediately usable without explicit initialization.\nFor example, `var q Queue[int]` is valid and ready to accept elements.\n\n- Explicit Construction\nConstructors are provided for flexibility:\n\n`New` creates a structure with default capacity.\n`NewWithCapacity` allows pre-allocation when the expected size is known.\n\n- Efficient Memory Management\n\nSlice-backed structures (e.g. Stack, Queue) grow automatically and shrink when appropriate to reclaim memory, minimizing \nlong-term footprint.\n\n- Concurrency by Design\n\nConcurrent variants are built with minimal locking to ensure safety across goroutines while prioritizing throughput and \nreducing contention.\n\n## Non Thread safe\n\n[Stack](stack/)\n\n[Queue](queue/)\n\n[Set](set/)\n\n## Thread safe\n\n[Stack](concurrent/stack/)\n\n[Queue](concurrent/queue/)\n\n[Set](concurrent/set/)\n\n[CMap](concurrent/cmap/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhavishbhundoo%2Fcollections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhavishbhundoo%2Fcollections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhavishbhundoo%2Fcollections/lists"}