code: func (n *network) contains(ip net.IP) bool {
  	for _, s := range n.subnets {
  		if s.subnetIP.Contains(ip) {
  			return true
  		}
  	}
  
  	return false
  }
docs: // contains return true if the passed ip belongs to one the network's
  // subnets