net/netip.Prefix.IsValid (method, view implemented interface methods)
13 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() {
github.com/jackc/pgx/v5/pgtype
builtin_wrappers.go#L519: if !v.IsValid() {
builtin_wrappers.go#L547: if !v.IsValid() {
builtin_wrappers.go#L587: if !v.IsValid() {
inet.go#L62: if !prefix.IsValid() {
inet.go#L102: if !prefix.IsValid() {
inet.go#L141: if !prefix.IsValid() {
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)