type net.IPNet
25 uses
net (current package)
interface_linux.go#L180: return &IPNet{IP: IPv4(a.Value[0], a.Value[1], a.Value[2], a.Value[3]), Mask: CIDRMask(int(ifam.Prefixlen), 8*IPv4len)}
interface_linux.go#L182: ifa := &IPNet{IP: make(IP, IPv6len), Mask: CIDRMask(int(ifam.Prefixlen), 8*IPv6len)}
ip.go#L46: type IPNet struct {
ip.go#L456: func networkNumberAndMask(n *IPNet) (ip IP, m IPMask) {
ip.go#L480: func (n *IPNet) Contains(ip IP) bool {
ip.go#L498: func (n *IPNet) Network() string { return "ip+net" }
ip.go#L506: func (n *IPNet) String() string {
ip.go#L550: func ParseCIDR(s string) (IP, *IPNet, error) {
ip.go#L567: return IP(addr16[:]), &IPNet{IP: IP(addr16[:]).Mask(m), Mask: m}, nil
sockopt_posix.go#L36: case *IPNet:
crypto/x509
parser.go#L576: getValues := func(subtrees cryptobyte.String) (dnsNames []string, ips []*net.IPNet, emails, uriDomains []string, err error) {
parser.go#L625: ips = append(ips, &net.IPNet{IP: net.IP(ip), Mask: net.IPMask(mask)})
verify.go#L487: func matchIPConstraint(ip net.IP, constraint *net.IPNet) (bool, error) {
verify.go#L740: return matchIPConstraint(parsedName.(net.IP), constraint.(*net.IPNet))
x509.go#L775: PermittedIPRanges []*net.IPNet
x509.go#L776: ExcludedIPRanges []*net.IPNet
x509.go#L1285: ipAndMask := func(ipNet *net.IPNet) []byte {
x509.go#L1293: serialiseConstraints := func(dns []string, ips []*net.IPNet, emails []string, uriDomains []string) (der []byte, err error) {
github.com/jackc/pgx/v5/pgtype
builtin_wrappers.go#L516: type netIPNetWrapper net.IPNet
pgtype.go#L636: case *net.IPNet:
pgtype.go#L814: return plan.next.Scan(src, (*netIPNetWrapper)(dst.(*net.IPNet)))
pgtype.go#L1493: case net.IPNet:
pgtype.go#L1673: return plan.next.Encode(netIPNetWrapper(value.(net.IPNet)), buf)
pgtype_default.go#L206: registerDefaultPgTypeVariants[net.IPNet](defaultMap, "cidr")
vendor/golang.org/x/net/http/httpproxy
proxy.go#L339: cidr *net.IPNet