A simple, battle-tested and generic set type for the Go language. Trusted by Docker, 1Password, Ethereum and Hashicorp.
https://github.com/deckarep/golang-set/compare/v2.5.0...v2.6.0
https://github.com/deckarep/golang-set/compare/v2.4.0...v2.5.0
IsEmpty
method added - prepared by @Jibaruhttps://github.com/deckarep/golang-set/compare/v2.3.1...v2.4.0
https://github.com/deckarep/golang-set/compare/v2.3.0...v2.3.1
*WithSize
constructors: NewThreadUnsafeSetWithSize
and NewSetWithSize
to allow for minimizing allocation churn and unnecessary resizing of internal state.RemoveAll
convenience methodhttps://github.com/deckarep/golang-set/compare/v2.2.0...v2.3.0
NewSetFromMapKeys
and NewThreadUnsafeSetFromMapKeys
convenience constructor methods by @jay-babuAppend
method for adding multiple elements in a single command by @SignorMercuriohttps://github.com/deckarep/golang-set/compare/v2.1.0...v2.2.0
NewThreadUnsafeSet()
take optional vals. by @jeffwidman in https://github.com/deckarep/golang-set/pull/83
New*SetFromSlice()
and NewSetWith()
APIs by @jeffwidman in https://github.com/deckarep/golang-set/pull/84
Full Changelog: https://github.com/deckarep/golang-set/compare/v2.0.0...v2.1.0