Closed dsnet closed 10 months ago
Upgrading to Go 1.18 is not strictly necessary, if we're not ready to do that yet, I can adjust the tests accordingly. It's still worthwhile to upgrade as that would unblock some other cleanups.
Hmmm... I can't submit this due to CI thinking it still needs to test on Go1.13 to Go 1.15. I feel like we had this issue before, but I don't remember what the resolution was.
This helper function makes it easier to specify that comparable types are safe to directly compare with the == operator in Go.
The API does not use generics as it follows existing options like cmp.AllowUnexported, cmpopts.IgnoreUnexported, or cmpopts.IgnoreTypes.
While generics provides type safety, the user experience is not as nice. Our current API allows multiple types to be specified:
While generics would not allow variadic arguments:
Bump mininimum supported Go to 1.18 for net/netip type. Start testing on Go 1.21.
Fixes #339