Skip to content

Commit 2440c77

Browse files
prattmicezz-no
authored andcommitted
doc/go1.22: document archive/tar and archive/zip changes
For golang#61422. Change-Id: Icf56cba0ac40b46caf3072bf2951b07403f47f36 Reviewed-on: https://go-review.googlesource.com/c/go/+/548939 Auto-Submit: Michael Pratt <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent c00de46 commit 2440c77

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

doc/go1.22.html

+6-14
Original file line numberDiff line numberDiff line change
@@ -313,28 +313,20 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
313313

314314
<dl id="archive/tar"><dt><a href="/pkg/archive/tar/">archive/tar</a></dt>
315315
<dd>
316-
<p><!-- https://go.dev/issue/50102 -->
317-
TODO: <a href="https://go.dev/issue/50102">https://go.dev/issue/50102</a>: add FileInfoNames interface
316+
<p><!-- https://go.dev/issue/58000, CL 513316 -->
317+
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.
318318
</p>
319319

320-
<p><!-- https://go.dev/issue/58000 -->
321-
TODO: <a href="https://go.dev/issue/58000">https://go.dev/issue/58000</a>: add (*Writer).AddFS
322-
</p>
323-
324-
<p><!-- CL 513316 -->
325-
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
326-
</p>
327-
328-
<p><!-- CL 514235 -->
329-
TODO: <a href="https://go.dev/cl/514235">https://go.dev/cl/514235</a>: archive/tar: add FileInfoNames interface; modified api/next/50102.txt
320+
<p><!-- https://go.dev/issue/50102, CL 514235 -->
321+
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.
330322
</p>
331323
</dd>
332324
</dl><!-- archive/tar -->
333325

334326
<dl id="archive/zip"><dt><a href="/pkg/archive/zip/">archive/zip</a></dt>
335327
<dd>
336-
<p><!-- https://go.dev/issue/54898 -->
337-
TODO: <a href="https://go.dev/issue/54898">https://go.dev/issue/54898</a>: archive/zip: add (*Writer).AddFS
328+
<p><!-- https://go.dev/issue/54898, CL 513438 -->
329+
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.
338330
</p>
339331
</dd>
340332
</dl><!-- archive/zip -->

0 commit comments

Comments
 (0)