From 3f442ab06242d76c17f909fc7fc2de7908f3fc1c Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Mon, 11 Dec 2023 16:19:42 -0500 Subject: [PATCH] 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Knyszek --- doc/go1.22.html | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/doc/go1.22.html b/doc/go1.22.html index 3c67dee3bb..fae3714366 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -313,28 +313,20 @@ defer func() {
archive/tar
-

- TODO: https://go.dev/issue/50102: add FileInfoNames interface +

+ The new method Writer.AddFS adds all of the files from an fs.FS to the archive.

-

- TODO: https://go.dev/issue/58000: add (*Writer).AddFS -

- -

- TODO: https://go.dev/cl/513316: archive/tar: add AddFS method to Writer; modified api/next/58000.txt -

- -

- TODO: https://go.dev/cl/514235: archive/tar: add FileInfoNames interface; modified api/next/50102.txt +

+ If the argument to FileInfoHeader implements the new FileInfoNames 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.

archive/zip
-

- TODO: https://go.dev/issue/54898: archive/zip: add (*Writer).AddFS +

+ The new method Writer.AddFS adds all of the files from an fs.FS to the archive.

-- 2.48.1