The go-set package provides generic Set implementations for Go, including HashSet for types with a Hash() function and TreeSet for orderable data
hashicorp/go-set has 181 GitHub stars.
It currently ranks #26509 daily, #27060 weekly, #29069 monthly by momentum on Trending Repos; its best-ever rank is #4838.