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

netip in Go 1.18 #313

Open
Tracked by #368
beriberikix opened this issue Mar 17, 2022 · 3 comments
Open
Tracked by #368

netip in Go 1.18 #313

beriberikix opened this issue Mar 17, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@beriberikix
Copy link
Collaborator

https://pkg.go.dev/net/netip

Go 1.18 introduces a new IP address format, that among other things, reduces memory usage (background.)

Are there plans to support 1.18 and adopt netip?

@HRogge
Copy link
Collaborator

HRogge commented Mar 17, 2022

The new netip package is definitely a HUGE step forward (we have been using it predecessor for quite a while)... unfortunately its slightly incompatible with its earlier revision (https://pkg.go.dev/inet.af/netaddr). So moving to netip would mean loosing compatibility with go 1.17 and earlier.

and some IDEs are still a bit shaky in terms of the new Go 1.18 features (generics!)

@beriberikix
Copy link
Collaborator Author

So moving to netip would mean loosing compatibility with go 1.17 and earlier.

Yup, that's what I figured would be the limiting factor. Is there a specific commitment to versions or backwards compat?

@jkralik jkralik mentioned this issue Jul 30, 2022
12 tasks
@jkralik jkralik added the enhancement New feature or request label Aug 29, 2023
@HRogge
Copy link
Collaborator

HRogge commented Oct 18, 2023

Minimum Go version of Go-Coap has been changed to 1.18... maybe its time to reinvestigate?

There are not only net.IP, we might also look into replacing net.Addr in some functions (its a really horrible interface to work with).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants