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

LPM: migrate from net package types to net/netip package types #45

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

nurlybekovnt
Copy link
Contributor

  1. Package netip defines a IP address type that's a small value type. Building on that Addr type, the package also defines AddrPort (an IP address and a port), and Prefix (an IP address and a bit length prefix). Compared to the net.IP type, this package's Addr type takes less memory, is immutable, and is comparable (supports == and being a map key). Therefore, the use of net.IP/net.IPNet is not recommended.
  2. Updated Golang version and depending packages

Nadirbek Nurlybekov added 2 commits March 15, 2024 01:05
Signed-off-by: Nadirbek Nurlybekov <n.nurlybekov@kazdream.kz>
Signed-off-by: Nadirbek Nurlybekov <n.nurlybekov@kazdream.kz>
@yerden yerden merged commit dd5719f into yerden:master Mar 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants