The netip package has been around for a while in stdlib and build upon the original net package. Currently there are helper functions in the manet package that convert from and to net data types and multi addresses.
https://pkg.go.dev/github.com/multiformats/go-multiaddr@v0.14.0/net#ToIP
https://pkg.go.dev/github.com/multiformats/go-multiaddr@v0.14.0/net#FromNetAddr
It would be nice to expand on these functions and add support for netip data types along side the existing functions.
The netip package has been around for a while in stdlib and build upon the original net package. Currently there are helper functions in the manet package that convert from and to net data types and multi addresses.
https://pkg.go.dev/github.com/multiformats/go-multiaddr@v0.14.0/net#ToIP
https://pkg.go.dev/github.com/multiformats/go-multiaddr@v0.14.0/net#FromNetAddr
It would be nice to expand on these functions and add support for netip data types along side the existing functions.