1
0
mirror of https://github.com/golang/go synced 2024-11-22 21:40:03 -07:00
go/doc/progs
Russ Cox a0bcaf4c00 Change os.Error convention:
echo back context of call in error if likely to be useful.

For example, if os.Open("/etc/passwd", os.O_RDONLY)
fails with syscall.EPERM, it returns as the os.Error

	&PathError{
		Op: "open",
		Path: "/etc/passwd"
		Error: os.EPERM
	}

which formats as

	open /etc/passwd: permission denied

Not converted:

	datafmt
	go/...
	google/...
	regexp
	tabwriter
	template

R=r
DELTA=1153  (561 added, 156 deleted, 436 changed)
OCL=30738
CL=30781
2009-06-25 20:24:55 -07:00
..
cat_rot13.go add ./ to imports where necessary 2009-06-25 20:13:56 -07:00
cat.go add ./ to imports where necessary 2009-06-25 20:13:56 -07:00
echo.go casify tutorial examples 2009-01-15 17:54:07 -08:00
file.go Change os.Error convention: 2009-06-25 20:24:55 -07:00
helloworld3.go add ./ to imports where necessary 2009-06-25 20:13:56 -07:00
helloworld.go remove print() from the tutorial, generating a little clumsiness around "import" 2009-03-18 14:09:16 -07:00
print_string.go Automated g4 rollback of changelist 25024, 2009-03-03 08:39:12 -08:00
print.go Automated g4 rollback of changelist 25024, 2009-03-03 08:39:12 -08:00
run restructure makefiles, scripts to factor out O= logic. 2009-06-05 10:59:55 -07:00
server1.go remove print() from the tutorial, generating a little clumsiness around "import" 2009-03-18 14:09:16 -07:00
server.go remove print() from the tutorial, generating a little clumsiness around "import" 2009-03-18 14:09:16 -07:00
sieve1.go remove print() from the tutorial, generating a little clumsiness around "import" 2009-03-18 14:09:16 -07:00
sieve.go remove print() from the tutorial, generating a little clumsiness around "import" 2009-03-18 14:09:16 -07:00
sort.go delete export 2009-01-20 14:40:40 -08:00
sortmain.go remove print() from the tutorial, generating a little clumsiness around "import" 2009-03-18 14:09:16 -07:00
strings.go move things out of sys into os and runtime 2009-05-08 15:21:41 -07:00
sum.go code changes for array conversion. 2009-04-15 20:27:45 -07:00