intset is an efficient implementation of a set of small non-negative integers. It provides methods for add, remove, and testing individual integers.
intset also provides set union, intersection, difference, and symmetric difference operations, and the ability to query the number of elements.
go get github.com/weiwenchen2022/intset