From c759ec228435e387a5c863b6b886b49a055fa80a Mon Sep 17 00:00:00 2001
From: Austin Clements
- The net
package now has methods to send and receive UDP packets
- using netip.Addr
values instead of the relatively heavy
- *net.UDPAddr
values.
+ The net
package includes new
+ methods that parallel existing methods, but
+ return netip.AddrPort
instead of the
+ heavier-weight net.IP
or
+ *net.UDPAddr types.
+ The net
package also now includes functions and methods
+ to convert between the existing
+ TCPAddr
/UDPAddr
+ types and netip.AddrPort
.
net.Error.Temporary
has been deprecated.
-
- - TODO: Several new net APIs. -
-