mirror of
https://github.com/golang/go.git
synced 2024-09-21 10:28:27 +00:00
doc/go1.22: document archive/tar and archive/zip changes
For #61422. Change-Id: Icf56cba0ac40b46caf3072bf2951b07403f47f36 Reviewed-on: https://go-review.googlesource.com/c/go/+/548939 Auto-Submit: Michael Pratt <mpratt@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
parent
e70d343306
commit
3f442ab062
@ -313,28 +313,20 @@ defer func() {
|
||||
|
||||
<dl id="archive/tar"><dt><a href="/pkg/archive/tar/">archive/tar</a></dt>
|
||||
<dd>
|
||||
<p><!-- https://go.dev/issue/50102 -->
|
||||
TODO: <a href="https://go.dev/issue/50102">https://go.dev/issue/50102</a>: add FileInfoNames interface
|
||||
<p><!-- https://go.dev/issue/58000, CL 513316 -->
|
||||
The new method <a href="/pkg/archive/tar#Writer.AddFS"<code>Writer.AddFS</code></a> adds all of the files from an <a href="/pkg/io/fs#FS"><code>fs.FS</code></a> to the archive.
|
||||
</p>
|
||||
|
||||
<p><!-- https://go.dev/issue/58000 -->
|
||||
TODO: <a href="https://go.dev/issue/58000">https://go.dev/issue/58000</a>: add (*Writer).AddFS
|
||||
</p>
|
||||
|
||||
<p><!-- CL 513316 -->
|
||||
TODO: <a href="https://go.dev/cl/513316">https://go.dev/cl/513316</a>: archive/tar: add AddFS method to Writer; modified api/next/58000.txt
|
||||
</p>
|
||||
|
||||
<p><!-- CL 514235 -->
|
||||
TODO: <a href="https://go.dev/cl/514235">https://go.dev/cl/514235</a>: archive/tar: add FileInfoNames interface; modified api/next/50102.txt
|
||||
<p><!-- https://go.dev/issue/50102, CL 514235 -->
|
||||
If the argument to <a href="/pkg/archive/tar#FileInfoHeader"><code>FileInfoHeader</code></a> implements the new <a href="/pkg/archive/tar#FileInfoNames"><code>FileInfoNames</code></a> interface, then the interface methods will be used to set the UID/GID of the file header. This allows applications to override the default UID/GID resolution.
|
||||
</p>
|
||||
</dd>
|
||||
</dl><!-- archive/tar -->
|
||||
|
||||
<dl id="archive/zip"><dt><a href="/pkg/archive/zip/">archive/zip</a></dt>
|
||||
<dd>
|
||||
<p><!-- https://go.dev/issue/54898 -->
|
||||
TODO: <a href="https://go.dev/issue/54898">https://go.dev/issue/54898</a>: archive/zip: add (*Writer).AddFS
|
||||
<p><!-- https://go.dev/issue/54898, CL 513438 -->
|
||||
The new method <a href="/pkg/archive/zip#Writer.AddFS"<code>Writer.AddFS</code></a> adds all of the files from an <a href="/pkg/io/fs#FS"><code>fs.FS</code></a> to the archive.
|
||||
</p>
|
||||
</dd>
|
||||
</dl><!-- archive/zip -->
|
||||
|
Loading…
Reference in New Issue
Block a user