aboutsummaryrefslogtreecommitdiff
path: root/src/os/testdata
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2020-10-29 13:51:20 -0400
committerRuss Cox <rsc@golang.org>2020-12-02 17:00:06 +0000
commit3d913a926675d8d6fcdc3cfaefd3136dfeba06e1 (patch)
treef67a6801ab129669a604f897423b5b12e6874328 /src/os/testdata
parent5984ea71977d8436436a096902a32974b958c0bb (diff)
downloadgo-3d913a926675d8d6fcdc3cfaefd3136dfeba06e1.tar.xz
os: add ReadFile, WriteFile, CreateTemp (was TempFile), MkdirTemp (was TempDir) from io/ioutil
io/ioutil was a poorly defined collection of helpers. Proposal #40025 moved out the generic I/O helpers to io. This CL for proposal #42026 moves the OS-specific helpers to os, making the entire io/ioutil package deprecated. For #42026. Change-Id: I018bcb2115ef2ff1bc7ca36a9247eda429af21ad Reviewed-on: https://go-review.googlesource.com/c/go/+/266364 Trust: Russ Cox <rsc@golang.org> Trust: Emmanuel Odeke <emmanuel@orijtech.com> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Diffstat (limited to 'src/os/testdata')
-rw-r--r--src/os/testdata/hello1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os/testdata/hello b/src/os/testdata/hello
new file mode 100644
index 0000000000..e47c092a51
--- /dev/null
+++ b/src/os/testdata/hello
@@ -0,0 +1 @@
+Hello, Gophers!