2 ms·You can use map[X]bool as a set. Not ideal I agree, but it works ok.by IshKebab 10y agoYou can use map[X]bool as a set. Not ideal I agree, but it works ok.