From c759ec228435e387a5c863b6b886b49a055fa80a Mon Sep 17 00:00:00 2001
From: Austin Clements
Date: Tue, 7 Dec 2021 16:29:21 -0500
Subject: [PATCH] doc/go1.18: clarify additions to net package API
For #47694.
Updates #46518.
Change-Id: Ife3a8d3d6a1c50f55b5ab15730d5a6bd3ec512e1
Reviewed-on: https://go-review.googlesource.com/c/go/+/370134
Trust: Austin Clements
Reviewed-by: Damien Neil
---
doc/go1.18.html | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/doc/go1.18.html b/doc/go1.18.html
index 10a05ad886..ad08083793 100644
--- a/doc/go1.18.html
+++ b/doc/go1.18.html
@@ -360,9 +360,15 @@ Do not send CLs removing the interior tags from such phrases.
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.
+ 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
.
TODO
@@ -599,12 +605,6 @@ Do not send CLs removing the interior tags from such phrases.
net.Error.Temporary
has been deprecated.
-
-
-
- TODO: Several new net APIs.
-
-
- net/http
--
2.51.0