1
0
mirror of https://github.com/golang/go synced 2024-11-22 06:04:39 -07:00
go/misc/dashboard/builder
Rob Pike 8a90fd3c72 os: New Open API.
We replace the current Open with:
OpenFile(name, flag, perm) // same as old Open
Open(name) // same as old Open(name, O_RDONLY, 0)
Create(name) // same as old Open(name, O_RDWR|O_TRUNC|O_CREAT, 0666)

This CL includes a gofix module and full code updates: all.bash passes.
(There may be a few comments I missed.)

The interesting packages are:
        gofix
        os
Everything else is automatically generated except for hand tweaks to:
        src/pkg/io/ioutil/ioutil.go
        src/pkg/io/ioutil/tempfile.go
        src/pkg/crypto/tls/generate_cert.go
        src/cmd/goyacc/goyacc.go
        src/cmd/goyacc/units.y

R=golang-dev, bradfitzwork, rsc, r2
CC=golang-dev
https://golang.org/cl/4357052
2011-04-04 23:42:14 -07:00
..
doc.go misc/dashboard/builder/doc.go: gofmt it 2011-03-07 11:00:57 -08:00
exec.go os: New Open API. 2011-04-04 23:42:14 -07:00
hg.go gobuilder: add -package flag to build external packages 2011-03-03 14:41:09 +11:00
http.go gobuilder: add -package flag to build external packages 2011-03-03 14:41:09 +11:00
main.go codereview: permit CLs of the form weekly.DATE 2011-03-17 09:11:08 +11:00
Makefile gobuilder: add -package flag to build external packages 2011-03-03 14:41:09 +11:00
package.go gobuilder: add -package flag to build external packages 2011-03-03 14:41:09 +11:00