Golang Set Versions Save

A simple, battle-tested and generic set type for the Go language. Trusted by Docker, 1Password, Ethereum and Hashicorp.

v2.6.0

4 months ago

What's Changed

  • Adds ContainsOne method to mitigate allocation as discussed in: https://github.com/deckarep/golang-set/issues/118
  • Comprehensive benchmarks and unit-tests added to warrant and prove this change out
  • Brought to you by: @vladvalkov - Thank You and Happy Holidays! 🎊 🍾

Full Changelog

https://github.com/deckarep/golang-set/compare/v2.5.0...v2.6.0

v2.5.0

5 months ago

What's Changed

  • Add Sorted method - easily get elements of a set into a sorted slice.
  • Move to own file that can be build tagged
  • Also test go 1.21

Full Changelog

https://github.com/deckarep/golang-set/compare/v2.4.0...v2.5.0

v2.4.0

5 months ago

What's Changed

  • Docs were fixed for the Union method - prepared by @ravanscafi
  • Install instructions added to README.MD - prepared by @cemremengu
  • New IsEmpty method added - prepared by @Jibaru

Full Changelog

https://github.com/deckarep/golang-set/compare/v2.3.1...v2.4.0

v2.3.1

9 months ago

What's Changed

  • After a simplification previous refactor to get rid of one layer of indirection a bug was introduced that affected JSON unmarshaling that resulted in a panic - fix prepared by @fujie-xiyou

Full Changelog

https://github.com/deckarep/golang-set/compare/v2.3.0...v2.3.1

v2.3.0

1 year ago

What's Changed

  • Utilizes map capacity hint in all constructors to minimize memory allocation churn with instantiation and population of Set - originally proposed by @fy0
  • New *WithSize constructors: NewThreadUnsafeSetWithSize and NewSetWithSize to allow for minimizing allocation churn and unnecessary resizing of internal state.
  • Adds a RemoveAll convenience method

Full Changelog

https://github.com/deckarep/golang-set/compare/v2.2.0...v2.3.0

v2.2.0

1 year ago

What's Changed

  • Streamline pointer indirection, and docs and optimized Clear method by @fakefloordiv
  • NewSetFromMapKeys and NewThreadUnsafeSetFromMapKeys convenience constructor methods by @jay-babu
  • Append method for adding multiple elements in a single command by @SignorMercurio

Full Changelog

https://github.com/deckarep/golang-set/compare/v2.1.0...v2.2.0

v2.1.0

2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/deckarep/golang-set/compare/v2.0.0...v2.1.0

v1.7.1

5 years ago
  • Fixes PowerSet functionality which previously caused panic
  • Adds additional unit-testing

v1.7

6 years ago
  • Includes Go cleanup.
  • New .Each iteration method.
  • Locking semantic fixes.

v1.6

7 years ago
  • Includes fixes to deadlock
  • Robustness around locking
  • The exporting of OrderedPairs.