So apparently Go doesn’t have a set data type in its stdlib?? When reading up on it I found this blog which suggests this nonsense instead, using a hashmap with empty anonymous structs as values. https://www.davidkaya.com/sets-in-golang/
I guess it’s not *wrong* if you don’t have sets builtin. Making the best of an awkward situation, but. What if the language just provided sets like Python, Ruby, Rust, etc.