]> Cypherpunks repositories - gostls13.git/commit
archive/tar: add FileInfoNames interface
authorqiulaidongfeng <2645477756@qq.com>
Fri, 15 Mar 2024 10:40:23 +0000 (10:40 +0000)
committerCherry Mui <cherryyz@google.com>
Fri, 15 Mar 2024 16:01:50 +0000 (16:01 +0000)
commitd838e4dcdf89124ed051e1c53e8472e900664a6b
tree391b301a77fd1a5579cbe8bbcf59815dcd293a1d
parent49204af37efb819bf22f720f27adadfb9b6238fc
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 <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
api/next/50102.txt [new file with mode: 0644]
doc/next/6-stdlib/99-minor/archive/tar/50102.md [new file with mode: 0644]
src/archive/tar/common.go
src/archive/tar/stat_unix.go
src/archive/tar/tar_test.go