1
0
mirror of https://github.com/golang/go synced 2024-10-04 18:31:22 -06:00
go/src/pkg/io/ioutil
Rob Pike 56069f0333 os: delete os.EINVAL and so on
The set of errors forwarded by the os package varied with system and
was therefore non-portable.
Three helpers added for portable error checking: IsExist, IsNotExist, and IsPermission.
One or two more may need to come, but let's keep the set very small to discourage
thinking about errors that way.

R=mikioh.mikioh, gustavo, r, rsc
CC=golang-dev
https://golang.org/cl/5672047
2012-02-17 10:04:29 +11:00
..
ioutil_test.go io/ioutil: close file in TestWriteFile before deleting it 2011-12-19 17:30:14 +11:00
ioutil.go io/ioutil: document EOF behavior in ReadFile and ReadAll 2012-02-08 11:40:56 +11:00
tempfile_test.go io/ioutil: use filepath.Join, handle trailing / in $TMPDIR 2011-03-06 21:52:37 -05:00
tempfile.go os: delete os.EINVAL and so on 2012-02-17 10:04:29 +11:00