mirror of
https://github.com/golang/go
synced 2024-11-17 03:14:50 -07:00
doc/go1.20: add release notes for archive/zip, encoding/binary, mime
For #48866 For #54139 For #54801 Change-Id: Iafe72ccc7e756ec1edb5bb7e8e90d385458cff29 Reviewed-on: https://go-review.googlesource.com/c/go/+/450280 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Damien Neil <dneil@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
787f8167e4
commit
6df542159b
@ -203,7 +203,9 @@ Do not send CLs removing the interior tags from such phrases.
|
|||||||
<dl id="archive/zip"><dt><a href="/pkg/archive/zip/">archive/zip</a></dt>
|
<dl id="archive/zip"><dt><a href="/pkg/archive/zip/">archive/zip</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p><!-- CL 449955 -->
|
<p><!-- CL 449955 -->
|
||||||
TODO: <a href="https://go.dev/cl/449955">https://go.dev/cl/449955</a>: archive/zip: don't read directories containing file data
|
Reading from a directory file that contains file data will now return an error.
|
||||||
|
The zip specification does not permit directory files to contain file data,
|
||||||
|
so this change only affects reading from invalid archives.
|
||||||
</p>
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
</dl><!-- archive/zip -->
|
</dl><!-- archive/zip -->
|
||||||
@ -306,7 +308,10 @@ Do not send CLs removing the interior tags from such phrases.
|
|||||||
<dl id="encoding/binary"><dt><a href="/pkg/encoding/binary/">encoding/binary</a></dt>
|
<dl id="encoding/binary"><dt><a href="/pkg/encoding/binary/">encoding/binary</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p><!-- CL 420274 -->
|
<p><!-- CL 420274 -->
|
||||||
TODO: <a href="https://go.dev/cl/420274">https://go.dev/cl/420274</a>: encoding/binary: ReadUvarint return io.ErrUnexpectedEOF when read at least 1 byte
|
The <a href="/pkg/encoding/binary/#ReadVarint"><code>ReadVarint</code></a> and
|
||||||
|
<a href="/pkg/encoding/binary/#ReadUvarint"><code>ReadUvarint</code></a>
|
||||||
|
functions will now return <code>io.ErrUnexpectedEOF</code> after reading a partial value,
|
||||||
|
rather than <code>io.EOF</code>.
|
||||||
</p>
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
</dl><!-- encoding/binary -->
|
</dl><!-- encoding/binary -->
|
||||||
@ -418,7 +423,8 @@ Do not send CLs removing the interior tags from such phrases.
|
|||||||
<dl id="mime"><dt><a href="/pkg/mime/">mime</a></dt>
|
<dl id="mime"><dt><a href="/pkg/mime/">mime</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p><!-- https://go.dev/issue/48866 -->
|
<p><!-- https://go.dev/issue/48866 -->
|
||||||
TODO: <a href="https://go.dev/issue/48866">https://go.dev/issue/48866</a>: allow duplicate media parameters with equal values
|
The <code>ParseMediaType</code> function now allows duplicate parameter names,
|
||||||
|
so long as the values of the names are the same.
|
||||||
</p>
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
</dl><!-- mime -->
|
</dl><!-- mime -->
|
||||||
@ -426,7 +432,8 @@ Do not send CLs removing the interior tags from such phrases.
|
|||||||
<dl id="mime/multipart"><dt><a href="/pkg/mime/multipart/">mime/multipart</a></dt>
|
<dl id="mime/multipart"><dt><a href="/pkg/mime/multipart/">mime/multipart</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p><!-- CL 431675 -->
|
<p><!-- CL 431675 -->
|
||||||
TODO: <a href="https://go.dev/cl/431675">https://go.dev/cl/431675</a>: mime/multipart: use %w when wrapping error in NextPart
|
Methods of the <code>Reader</code> type now wrap errors
|
||||||
|
returned by the underlying <code>io.Reader</code>.
|
||||||
</p>
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
</dl><!-- mime/multipart -->
|
</dl><!-- mime/multipart -->
|
||||||
|
Loading…
Reference in New Issue
Block a user