Registry / networking / netipx

netipx

JSON →
library0.0.0-20231129151722-fdeea329fbbagogounverified

Package netipx contains code and types left behind when the old inet.af/netaddr package moved to the standard library as net/netip.

go get go4.org/netipx
INSTALL
IMPORT
SIG · NETIPX
N
netipx
networkinggov0.0.0-20231129151722-fdeea329fbba
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

netipx
go4.org/netipx

Lists all IPs in a given prefix using netipx.

package main import ( "fmt" "net/netip" "go4.org/netipx" ) func main() { ip := netip.MustParseAddr("192.0.2.1") prefix := netip.PrefixFrom(ip, 24) ips := netipx.PrefixIPs(prefix) fmt.Println(ips) }
Debug
Known issues
gotchaThis package is a supplement to the standard library's net/netip; some functions may overlap or be deprecated in future Go versions.
fix
Check if the functionality you need is already in net/netip before using netipx.
affects: all
Upgrade
Version history
0.0.0-20231129151722-fdeea329fbbalatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
netipx — go get netipx · libregistry