I'm developing a network application in Golang. I have a slice of IP addresses. Each time a request comes I use
net.LookupIP(host) to find out IP address of host which returns a slice of
net.IP. What is the best approach to compare these?
By the way in Python we have a
set data structure which makes above question so easy to resolve but what about Go?