net/netip.Addr.WithZone (method)
8 uses
net/netip (current package)
netip.go#L231: return IPv6Unspecified().WithZone(zone), nil
netip.go#L342: return AddrFrom16(ip).WithZone(zone), nil
netip.go#L491: func (ip Addr) WithZone(zone string) Addr {
netip.go#L1061: *ip = AddrFrom16([16]byte(b[:16])).WithZone(string(b[16:]))
net
tcpsock.go#L37: na = na.WithZone(a.Zone)
udpsock.go#L37: na = na.WithZone(a.Zone)
udpsock_posix.go#L87: ip = netip.AddrFrom16(from.Addr).WithZone(zoneCache.name(int(from.ZoneId)))
udpsock_posix.go#L107: ip := netip.AddrFrom16(sa.Addr).WithZone(zoneCache.name(int(sa.ZoneId)))
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |