1
0
mirror of https://github.com/golang/go synced 2024-10-04 16:31:22 -06:00
go/src/pkg/html
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
..
testdata/webkit html: sync testdata/webkit to match WebKit tip. 2010-06-15 09:07:47 +10:00
doc.go html: tokenize HTML comments. 2011-02-17 10:45:30 +11:00
entity_test.go html: move the sanity checking of the entity map from runtime 2010-12-08 07:55:03 +11:00
entity.go html: move the sanity checking of the entity map from runtime 2010-12-08 07:55:03 +11:00
escape.go html: unescape numeric entities, and complete the named entities table, including two-character entities. 2010-12-07 12:13:47 +11:00
Makefile html: first cut at a parser. 2010-12-07 12:02:36 +11:00
parse_test.go os: New Open API. 2011-04-04 23:42:14 -07:00
parse.go html: parse "<h1>foo<h2>bar". 2010-12-15 11:39:56 +11:00
token_test.go html: tokenize HTML comments. 2011-02-17 10:45:30 +11:00
token.go html: small documentation fix. 2011-02-18 10:35:49 +11:00