mirror of
https://github.com/golang/go
synced 2024-11-02 13:42:29 +00:00
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 <austin@google.com> Reviewed-by: Damien Neil <dneil@google.com>
This commit is contained in:
parent
f5b5939c28
commit
c759ec2284
1 changed files with 9 additions and 9 deletions
|
@ -360,9 +360,15 @@ Do not send CLs removing the interior tags from such phrases.
|
||||||
a network CIDR prefix.
|
a network CIDR prefix.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
The <code>net</code> package now has methods to send and receive UDP packets
|
The <a href="/pkg/net/"><code>net</code></a> package includes new
|
||||||
using <code>netip.Addr</code> values instead of the relatively heavy
|
methods that parallel existing methods, but
|
||||||
<code>*net.UDPAddr</code> values.
|
return <code>netip.AddrPort</code> instead of the
|
||||||
|
heavier-weight <a href="/pkg/net/#IP"><code>net.IP</code></a> or
|
||||||
|
<a href="/pkg/net/#UDPAddr"<code>*net.UDPAddr</code></a> types.
|
||||||
|
The <code>net</code> package also now includes functions and methods
|
||||||
|
to convert between the existing
|
||||||
|
<a href="/pkg/net/#TCPAddr"><code>TCPAddr</code>/<a href="/pkg/net/#UDPAddr"><code>UDPAddr</code>
|
||||||
|
types and <code>netip.AddrPort</code>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h3>TODO</h3>
|
<h3>TODO</h3>
|
||||||
|
@ -599,12 +605,6 @@ Do not send CLs removing the interior tags from such phrases.
|
||||||
<a href="/pkg/net#Error"><code>net.Error.Temporary</code></a> has been deprecated.
|
<a href="/pkg/net#Error"><code>net.Error.Temporary</code></a> has been deprecated.
|
||||||
</p>
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd>
|
|
||||||
<p>
|
|
||||||
TODO: Several new net APIs.
|
|
||||||
</p>
|
|
||||||
</dd>
|
|
||||||
</dl><!-- net -->
|
</dl><!-- net -->
|
||||||
|
|
||||||
<dl id="net/http"><dt><a href="/pkg/net/http/">net/http</a></dt>
|
<dl id="net/http"><dt><a href="/pkg/net/http/">net/http</a></dt>
|
||||||
|
|
Loading…
Reference in a new issue