]> Cypherpunks.ru repositories - gostls13.git/commitdiff
doc/go1.22: document archive/tar and archive/zip changes
authorMichael Pratt <mpratt@google.com>
Mon, 11 Dec 2023 21:19:42 +0000 (16:19 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 12 Dec 2023 16:29:03 +0000 (16:29 +0000)
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>
doc/go1.22.html

index 3c67dee3bb52f405818f8ce3c73fd29b401c0a5a..fae37143666e1e00c04e6d72493a1362d5ac7603 100644 (file)
@@ -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 -->