HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by duskwuff | Hacker News Reader
Parent
Full thread
duskwuff
·
> Like there's still no Set class
map[T]struct{} ?
View on HN
scubbo
·
So, like they said, no Set class.
erik_seaberg
·
https://github.com/deckarep/golang-set
offers a thread safety option and methods like contains all, intersect, and equal.
sethops1
·
There is also
https://github.com/hashicorp/go-set
which includes HashSet and TreeSet implementations for types with custom hashing functions, and orderable data respectively.
the_gipsy
·
You do need to buy a lot of batteries with go.
Reply on news.ycombinator.com