The net/netip package was added to the standard library with Go 1.18. It improves upon package net's IP-specific stuff in many ways. This library would benefit from switching to net/netip. However, because this library's API involves symbols from the net package, a new major version (v2.0.0) may be warranted.