diff --git a/doc/go1.18.html b/doc/go1.18.html index 6fe993d51b..82fe6f4520 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -123,10 +123,33 @@ Do not send CLs removing the interior tags from such phrases.
TODO: complete this section
+net/netip package
+ The new net/netip
+ package defines a new IP address type, Addr
+ that's a small, comparable, value type. Compared to the existing
+ net.IP type, the netip.Addr type takes less
+ memory, is immutable, and is comparable so it supports ==
+ and can be used as a map key.
+
+ In addition to Addr, the package defines
+ AddrPort, representing
+ an IP and port, and
+ Prefix, representing
+ a network CIDR prefix.
+
+ The net package now has methods to send and receive UDP packets
+ using netip.Addr values instead of the relatively heavy
+ *net.UDPAddr values.
+