1
0
mirror of https://github.com/golang/go synced 2024-11-26 09:18:07 -07:00
go/src/archive/tar
Roger Peppe 740f7d7370 archive/tar: unexport internal methods
Many of the methods inside the archive/tar package don't need to be
exported. Doing so sets a bad precedent that it's OK to export methods
to indicate an internal public API.  That's not a good idea in general,
because exported methods increase cognitive load when reading code:
the reader needs to consider whether the exported method might be used
via some external interface or reflection.

This CL should have no externally visible behaviour changes at all.

Change-Id: I94a63de5e6a28e9ac8a283325217349ebce4f308
Reviewed-on: https://go-review.googlesource.com/c/go/+/341410
Reviewed-by: Joe Tsai <joetsai@digital-static.net>
Trust: Joe Tsai <joetsai@digital-static.net>
Trust: Michael Knyszek <mknyszek@google.com>
2021-08-19 09:09:02 +00:00
..
testdata
common.go archive/tar: unexport internal methods 2021-08-19 09:09:02 +00:00
example_test.go
format.go archive/tar: unexport internal methods 2021-08-19 09:09:02 +00:00
reader_test.go archive/tar: unexport internal methods 2021-08-19 09:09:02 +00:00
reader.go archive/tar: unexport internal methods 2021-08-19 09:09:02 +00:00
stat_actime1.go
stat_actime2.go
stat_unix.go
strconv_test.go
strconv.go
tar_test.go
writer_test.go archive/tar: unexport internal methods 2021-08-19 09:09:02 +00:00
writer.go archive/tar: unexport internal methods 2021-08-19 09:09:02 +00:00