Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace netaddr-based IP parsing funcs with new netip/netipx-based ones #1615

Merged
merged 1 commit into from
Feb 5, 2023

Conversation

hairyhenderson
Copy link
Owner

@hairyhenderson hairyhenderson commented Feb 4, 2023

https://github.com/inetaf/netaddr is archived, and replaced with the net/netip types, and go4.org/netipx.

I'm replacing three parse functions with two new ones based on net/netip, and one using go4.org/netipx (net.ParseRange). Because the netipx.IPRange type may be moved to the stdlib at some point (though maybe not?), I'm marking net.ParseRange as experimental for now.

This also changes the still-experimental net.CIDR* functions to stop accepting types from the netaddr package.

Signed-off-by: Dave Henderson dhenderson@gmail.com

Signed-off-by: Dave Henderson <dhenderson@gmail.com>
@hairyhenderson hairyhenderson merged commit 08d70cf into main Feb 5, 2023
@hairyhenderson hairyhenderson deleted the deprecate-netaddr-funcs branch February 5, 2023 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant