{"repo":"deckarep/golang-set","free":true,"listed":false,"github":"https://github.com/deckarep/golang-set","clone":"git clone https://github.com/deckarep/golang-set.git","description":"A simple, battle-tested and generic set type for the Go language. Trusted by GoogleCloudPlatform, Docker, 1Password, Ethereum and Hashicorp.","language":"Go","stars":4700,"topics":["go","set","threadsafe","datastructures","concurrency","golang","generics"],"license":null,"category":"blockchain-web3","readme_excerpt":"golang-set The missing generic set collection for the Go language. Until Go has sets built-in...use this. Psst Hi there, 👋! Do you use or have interest in the Zig programming language created by Andrew Kelley? If so, the golang-set project has a new sibling project: ziglang-set! Come check it out! Update 4/20/2026 Packaged version: 2.9.0 contains the following: Address an edge case where a deadlock may occur with Each should a panic occur: PR #164 BSON Marshaling support for Marshaling and Unmarshaling: PR #142 New PopN method: PR #166 Reduced allocations by using capacity arg for some methods that may allocate: PR #171 Update 3/14/2025 Packaged version: 2.8.0 introduces support for true iterators for Go 1.23+. Please see issue #141 for further details on the implications of how iterations work between older Go versions vs newer Go versions. Additionally, this release has a minor unit-test spelling fix. Update 12/3/2024 Packaged version: 2.7.0 fixes a long-standing bug with JSON Unmarshaling . A large refactor in the interest of performance introduced this bug and there was no way around it but to revert the code back to how it was previously. The performance difference was likely negligible to begin with. JSON Marshaling and Unmarshaling is now properly supported again without needing to do workarounds. Update 3/5/2023 Packaged version: 2.2.0 release includes a refactor to minimize pointer indirection, better method documentation standards and a few constructor convenience ","default_branch":null,"files":null,"tree":[],"storefront":"/r/deckarep","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/deckarep/golang-set/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}