-
- Downloads
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>
Showing
- src/io/ioutil/ioutil.go 19 additions, 51 deletionssrc/io/ioutil/ioutil.go
- src/os/dir.go 21 additions, 1 deletionsrc/os/dir.go
- src/os/example_test.go 96 additions, 0 deletionssrc/os/example_test.go
- src/os/export_test.go 1 addition, 0 deletionssrc/os/export_test.go
- src/os/file.go 60 additions, 0 deletionssrc/os/file.go
- src/os/os_test.go 23 additions, 3 deletionssrc/os/os_test.go
- src/os/read_test.go 127 additions, 0 deletionssrc/os/read_test.go
- src/os/removeall_test.go 4 additions, 3 deletionssrc/os/removeall_test.go
- src/os/tempfile.go 118 additions, 0 deletionssrc/os/tempfile.go
- src/os/tempfile_test.go 193 additions, 0 deletionssrc/os/tempfile_test.go
- src/os/testdata/hello 1 addition, 0 deletionssrc/os/testdata/hello
- src/runtime/stubs.go 3 additions, 0 deletionssrc/runtime/stubs.go
Loading
Please register or sign in to comment