code: func InSubnets(ip net.IP, subnets map[string]*net.IPNet) bool {
  	for _, subnet := range subnets {
  		if subnet.Contains(ip) {
  			return true
  		}
  	}
  	return false
  }
docs: // InSubnets reports whether an IP address is in one of a map of subnets.