]> Cypherpunks.ru repositories - gostls13.git/commit
os: add ReadFile, WriteFile, CreateTemp (was TempFile), MkdirTemp (was TempDir) from...
authorRuss Cox <rsc@golang.org>
Thu, 29 Oct 2020 17:51:20 +0000 (13:51 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 2 Dec 2020 17:00:06 +0000 (17:00 +0000)
commit3d913a926675d8d6fcdc3cfaefd3136dfeba06e1
treef67a6801ab129669a604f897423b5b12e6874328
parent5984ea71977d8436436a096902a32974b958c0bb
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>
12 files changed:
src/io/ioutil/ioutil.go
src/os/dir.go
src/os/example_test.go
src/os/export_test.go
src/os/file.go
src/os/os_test.go
src/os/read_test.go [new file with mode: 0644]
src/os/removeall_test.go
src/os/tempfile.go [new file with mode: 0644]
src/os/tempfile_test.go [new file with mode: 0644]
src/os/testdata/hello [new file with mode: 0644]
src/runtime/stubs.go