diff options
| author | Ian Lance Taylor <iant@golang.org> | 2023-03-10 20:41:14 -0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-03-15 00:12:37 +0000 |
| commit | 9ae97f8b8b07c63d354ac41cd37771d87c679df7 (patch) | |
| tree | 459e68629d9f0e5a2857a8b591b7ec796cf205fe /src/encoding | |
| parent | ebf8e26d03d3c01bf1611b1189e0af64c3698557 (diff) | |
| download | go-9ae97f8b8b07c63d354ac41cd37771d87c679df7.tar.xz | |
os: don't hide all methods in recursive call to io.Copy
In order to avoid a recursive call to ReadFrom, we were converting
a *File to an io.Writer. But all we really need to do is hide
the ReadFrom method. In particular, this gives us the option of
adding a WriteTo method.
For #58808
Change-Id: I20d3a45749d528c93c23267c467e607fc17dc83f
Reviewed-on: https://go-review.googlesource.com/c/go/+/475535
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions
