aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorqiulaidongfeng <2645477756@qq.com>2023-08-04 05:15:41 +0000
committerGopher Robot <gobot@golang.org>2023-08-07 00:25:25 +0000
commit834a3f844a77823bf57c323d0927bc1f42b10e61 (patch)
tree4793f8925f3589b92e911e8eb487f76e572f888d /api
parenta04f5adc3c748a4bb33d83363b08648d5ba6d79f (diff)
downloadgo-834a3f844a77823bf57c323d0927bc1f42b10e61.tar.gz
go-834a3f844a77823bf57c323d0927bc1f42b10e61.zip
archive/tar: add FileInfoNames interface
An optional interface FileInfoNames has been added. If the parameter fi of FileInfoHeader implements the interface the Gname and Uname of the return value Header are provided by the method of the interface. Also added testing. Fixes #50102 Change-Id: I6fd06c7c9aaf29b22b7384542fe57affed33009a Change-Id: I6fd06c7c9aaf29b22b7384542fe57affed33009a GitHub-Last-Rev: 5e82257948759e13880d8af12743b9524ae3df5a GitHub-Pull-Request: golang/go#61662 Reviewed-on: https://go-review.googlesource.com/c/go/+/514235 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'api')
-rw-r--r--api/next/50102.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/api/next/50102.txt b/api/next/50102.txt
new file mode 100644
index 0000000000..dcb7977e83
--- /dev/null
+++ b/api/next/50102.txt
@@ -0,0 +1,9 @@
+pkg archive/tar, type FileInfoNames interface { Gname, IsDir, ModTime, Mode, Name, Size, Sys, Uname } #50102
+pkg archive/tar, type FileInfoNames interface, Gname(int) (string, error) #50102
+pkg archive/tar, type FileInfoNames interface, IsDir() bool #50102
+pkg archive/tar, type FileInfoNames interface, ModTime() time.Time #50102
+pkg archive/tar, type FileInfoNames interface, Mode() fs.FileMode #50102
+pkg archive/tar, type FileInfoNames interface, Name() string #50102
+pkg archive/tar, type FileInfoNames interface, Size() int64 #50102
+pkg archive/tar, type FileInfoNames interface, Sys() interface{} #50102
+pkg archive/tar, type FileInfoNames interface, Uname(int) (string, error) #50102