_). The blank identifier can be assigned or declared with any value of any type, with the value discarded harmlessly. For testing just presence in a map, use the blank identifier in place of the usual variable for the value."My opinion is that this would still waste a bool. What I do is make my
set a map[int]struct{}. A struct{} takes up no space. You can then
test for presence with _, ok := mySet[i]. If ok is true, integer i is
in the set. Adding to the set would be mySet[i] = struct{}. You may
want to make a Set type and hide these as methods. AddToSet(),
IsInSet(), etc