diff --git a/doc/go1.18.html b/doc/go1.18.html
index a1d1a72552..9c839bdc8f 100644
--- a/doc/go1.18.html
+++ b/doc/go1.18.html
@@ -457,16 +457,46 @@ Do not send CLs removing the interior tags from such phrases.
Prefix
, representing
a network CIDR prefix.
+ The package also defines several functions to create and examine
+ these new types:
+ AddrFrom4
,
+ AddrFrom16
,
+ AddrFromSlice
,
+ AddrPortFrom
,
+ IPv4Unspecified
,
+ IPv6LinkLocalAllNodes
,
+ IPv6Unspecified
,
+ MustParseAddr
,
+ MustParseAddrPort
,
+ MustParsePrefix
,
+ ParseAddr
,
+ ParseAddrPort
,
+ ParsePrefix
,
+ PrefixFrom
.
+
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.
+ *net.UDPAddr
types:
+ Resolver.LookupNetIP
,
+ UDPConn.ReadFromUDPAddrPort
,
+ UDPConn.ReadMsgUDPAddrPort
,
+ UDPConn.WriteToUDPAddrPort
,
+ UDPConn.WriteMsgUDPAddrPort
.
+ The new UDPConn
methods support allocation-free I/O.
+
The net
package also now includes functions and methods
to convert between the existing
TCPAddr
/UDPAddr
- types and netip.AddrPort
.
+ types and netip.AddrPort
:
+ TCPAddrFromAddrPort
,
+ UDPAddrFromAddrPort
,
+ TCPAddr.AddrPort
,
+ UDPAddr.AddrPort
.