mirror of
https://github.com/golang/go
synced 2024-11-15 07:30:28 -07:00
d838e4dcdf
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: a213613c79
GitHub-Pull-Request: golang/go#65273
Reviewed-on: https://go-review.googlesource.com/c/go/+/558355
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
10 lines
686 B
Plaintext
10 lines
686 B
Plaintext
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
|