]> Cypherpunks.ru repositories - gostls13.git/commit
all: add String for fs.{FileInfo,DirEntry} implementations
authorIan Lance Taylor <iant@golang.org>
Tue, 2 May 2023 00:38:08 +0000 (17:38 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 4 May 2023 16:27:35 +0000 (16:27 +0000)
commit1596aeec8ecc8f115bffad49a3d92944fc278f9a
tree3bb90b11f06add9b467d206abb8263e8dfe73d2c
parent09a24a91b5aff200aa5fb8e75977c5a354702089
all: add String for fs.{FileInfo,DirEntry} implementations

The new String methods use the new FormatFileInfo and
FormatDirEntry functions.

Fixes #54451

Change-Id: I414cdfc212ec3c316fb2734756d2117842a23631
Reviewed-on: https://go-review.googlesource.com/c/go/+/491175
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
18 files changed:
src/archive/tar/common.go
src/archive/zip/reader.go
src/archive/zip/struct.go
src/cmd/distpack/archive.go
src/cmd/go/internal/fsys/fsys.go
src/cmd/go/internal/modfetch/coderepo.go
src/cmd/gofmt/long_test.go
src/cmd/pack/pack_test.go
src/embed/embed.go
src/io/fs/readdir.go
src/io/fs/walk.go
src/net/http/fs_test.go
src/os/dir_plan9.go
src/os/dir_windows.go
src/os/file_unix.go
src/path/filepath/path.go
src/path/filepath/path_test.go
src/testing/fstest/mapfs.go