golang-set icon indicating copy to clipboard operation
golang-set copied to clipboard

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

Results 27 golang-set issues
Sort by recently updated
recently updated
newest added

Request a new feature allowing creation a set from a generic slice, where a key selector function can be provided. This would be useful in cases where we have complex...

Helper functions to work with iterators that don't depend on go1.23.

Many of the methods in the threadsafe set use the obvious pattern ```go s.Lock() o.Lock() ... do something s.Unlock() o.Unlock() ``` This can deadlock if two goroutines are concurrently doing...

Sometimes I want to return from a function a read-only `Set` backed by mapset's `Set`. It would be great if this package would define a read-only sub-set of `Set` interface...

threadSafeSet[T].UnmarshalJSON Can modify threadUnsafeSet data, so need a write lock

upgrade threadUnsafeSet.MarshalJSON by json array marshal

I tried to increase the test coverage to 100%.