From d838e4dcdf89124ed051e1c53e8472e900664a6b Mon Sep 17 00:00:00 2001 From: qiulaidongfeng <2645477756@qq.com> Date: Fri, 15 Mar 2024 10:40:23 +0000 Subject: archive/tar: add FileInfoNames interface An optional interface FileInfoNames has been added. If the parameter fi of FileInfoHeader implements the interface the Gname/Uname of the return value Header are provided by the method of the interface. Also added testing. Fixes #50102 Change-Id: I47976e238eb20ed43113b060e4f83a14ae49493e GitHub-Last-Rev: a213613c79e150d52a2f5c84dca7a49fe123fa40 GitHub-Pull-Request: golang/go#65273 Reviewed-on: https://go-review.googlesource.com/c/go/+/558355 Reviewed-by: Cherry Mui Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI --- api/next/50102.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 api/next/50102.txt (limited to 'api') diff --git a/api/next/50102.txt b/api/next/50102.txt new file mode 100644 index 0000000000..a142c3c220 --- /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() (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() (string, error) #50102 -- cgit v1.2.3-54-g00ecf