net/netip.Prefix.IsValid (method, view implemented interface methods)
6 uses
net/netip (current package)
netip.go#L1283: func (p Prefix) IsValid() bool { return !p.ip.isZero() && p.bits >= 0 && int(p.bits) <= p.ip.BitLen() }
netip.go#L1348: if !p.IsValid() || ip.hasZone() {
netip.go#L1378: if !p.IsValid() || !o.IsValid() {
netip.go#L1417: if !p.IsValid() {
netip.go#L1494: if !p.IsValid() {
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)