net/netip.Prefix.IsValid (method)
7 uses
net/netip (current package)
netip.go#L1326: func (p Prefix) IsValid() bool { return p.bitsPlusOne > 0 }
netip.go#L1331: func (p Prefix) IsSingleIP() bool { return p.IsValid() && p.Bits() == p.ip.BitLen() }
netip.go#L1429: if !p.IsValid() || ip.hasZone() {
netip.go#L1459: if !p.IsValid() || !o.IsValid() {
netip.go#L1498: if !p.IsValid() {
netip.go#L1591: if !p.IsValid() {
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)