net.IPNet.IP (field)
27 uses
net (current package)
interface_bsd.go#L113: ifat = append(ifat, &IPNet{IP: ip, Mask: mask})
ip.go#L42: IP IP // network number
ip.go#L476: if ip = n.IP.To4(); ip == nil {
ip.go#L477: ip = n.IP
ip.go#L729: return ip, &IPNet{IP: ip.Mask(m), Mask: m}, nil
sockopt_posix.go#L40: if ip.Equal(v.IP) {
sockopt_posix.go#L67: if v.IP.To4() != nil {
sockopt_posix.go#L68: return v.IP, nil
sockopt_posix.go#L91: if a := v.IP.To4(); a != nil {
crypto/x509
verify.go#L462: if len(ip) != len(constraint.IP) {
verify.go#L467: if mask := constraint.Mask[i]; ip[i]&mask != constraint.IP[i]&mask {
x509.go#L1225: ips = append(ips, &net.IPNet{IP: net.IP(ip), Mask: net.IPMask(mask)})
x509.go#L1792: maskedIP := ipNet.IP.Mask(ipNet.Mask)
github.com/jackc/pgtype
inet.go#L45: *dst = Inet{IPNet: &net.IPNet{Mask: mask, IP: value}, Status: Present}
inet.go#L98: IP: make(net.IP, len(src.IPNet.IP)),
inet.go#L101: copy(v.IP, src.IPNet.IP)
inet.go#L108: *v = make(net.IP, len(src.IPNet.IP))
inet.go#L109: copy(*v, src.IPNet.IP)
inet.go#L140: ipnet = &net.IPNet{Mask: mask, IP: ip}
inet.go#L168: ipnet.IP = make(net.IP, int(addressLength))
inet.go#L169: copy(ipnet.IP, src[4:])
inet.go#L198: switch len(src.IPNet.IP) {
inet.go#L204: return nil, fmt.Errorf("Unexpected IP length: %v", len(src.IPNet.IP))
inet.go#L215: buf = append(buf, byte(len(src.IPNet.IP)))
inet.go#L217: return append(buf, src.IPNet.IP...), nil
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |