1
0
mirror of https://github.com/golang/go synced 2024-11-25 20:57:57 -07:00
Change-Id: Ie1b9a0d3778d2a5af685e2e6d389366ea47cb748
This commit is contained in:
qiulaidongfeng 2024-01-26 13:58:50 +08:00
parent b71a199021
commit 951f17d682
2 changed files with 10 additions and 0 deletions

9
api/next/50102.txt Normal file
View File

@ -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

View File

@ -0,0 +1 @@
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 Uname/Gname of the file header. This allows applications to override the default Uname/Gname resolution.