From: Austin Clements
Date: Tue, 7 Dec 2021 21:29:21 +0000 (-0500)
Subject: doc/go1.18: clarify additions to net package API
X-Git-Tag: go1.18beta1~48
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c759ec228435e387a5c863b6b886b49a055fa80a;p=gostls13.git
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
---
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