code: func memberOf(ip net.IP, family AddressFamily) bool {
  	if ip.To4() != nil {
  		return family == familyIPv4
  	} else {
  		return family == familyIPv6
  	}
  }
docs: // memberOF tells if the IP is of the desired family. Used for checking interface addresses.