Go doesn’t offer a native set type, and the standard library doesn’t provide one either. So, how do you create sets in Go? You use a map. First, we’ll explore how maps can be used to implement sets. However, if your program relies heavily on sets, maps can quickly become tedious. That’s why, in the second part, we’ll introduce an open-source package that offers two convenient set implementations. Finally, since these solutions only work with comparable types, we’ll wrap up by expl...