- 24 Nov, 2011 5 commits
-
-
Scott Lawrence authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5430046
-
Rob Pike authored
Also warn about uses of Set. R=rsc CC=golang-dev https://golang.org/cl/5436051
-
Rob Pike authored
The Set type is gone. Instead, templates are automatically associated by being parsed together; nested definitions implicitly create associations. Only associated templates can invoke one another. This approach dramatically reduces the breadth of the construction API. For now, html/template is deleted from src/pkg/Makefile, so this can be checked in. Nothing in the tree depends on it. It will be updated next. R=dsymonds, adg, rsc, r, gri, mikesamuel, nigeltao CC=golang-dev https://golang.org/cl/5415060
-
Andrew Balholm authored
Pass tests3.dat, test 4: <!DOCTYPE html><html><head></head><body><pre>\n</pre></body></html> | <!DOCTYPE html> | <html> | <head> | <body> | <pre> Also pass tests through test 11: <!DOCTYPE html><pre>

A</pre> R=nigeltao CC=golang-dev https://golang.org/cl/5437051
-
Robert Griesemer authored
R=iant, bradfitz CC=golang-dev https://golang.org/cl/5430059
-
- 23 Nov, 2011 6 commits
-
-
Andrew Balholm authored
Pass tests2.dat, test 59: <!DOCTYPE <!DOCTYPE HTML>><!--<!--x-->--> | <!DOCTYPE <!doctype> | <html> | <head> | <body> | ">" | <!-- <!--x --> | "-->" Pass all the tests in doctype01.dat. Also pass tests2.dat, test 60: <!doctype html><div><form></form><div></div></div> R=nigeltao CC=golang-dev https://golang.org/cl/5437045
-
Robert Griesemer authored
Removed more string conversions and streamlined bottleneck printing interface by removing unnecessary tests where possible. About 6% faster AST printing. Before: - printer.BenchmarkPrint 50 32056640 ns/op After: - printer.BenchmarkPrint 50 30138440 ns/op (-6%) R=r CC=golang-dev https://golang.org/cl/5431047
-
Rémy Oudompheng authored
Also add array values to printing test suite. Fixes #2468. R=golang-dev, r CC=golang-dev, remy https://golang.org/cl/5436053
-
Adam Langley authored
I misinterpreted http://tools.ietf.org/html/rfc4880#section-5.5.3 and implemented the sum of 16-bit values, rather than the 16-bit sum of 8-bit values. Thanks to Szabolcs Nagy for pointing it out. R=bradfitz, r, rsc CC=golang-dev https://golang.org/cl/5372091
-
Dave Cheney authored
R=rsc, agl, n13m3y3r, bradfitz CC=golang-dev https://golang.org/cl/5385041
-
Dave Cheney authored
R=agl, rsc CC=golang-dev https://golang.org/cl/5436056
-
- 22 Nov, 2011 10 commits
-
-
Robert Griesemer authored
R=r CC=golang-dev https://golang.org/cl/5436052
-
Robert Griesemer authored
Buffer intermediate output via a bytes.Buffer and thus avoid calling through the entire Writer stack for every item printed. There is more opportunity for improvements along the same lines. Before (best of 3 runs): - printer.BenchmarkPrint 50 47959760 ns/op - time gofmt -l $GOROOT/src real 0m11.517s After (best of 3 runs): - printer.BenchmarkPrint 50 32056640 ns/op (= -33%) - time gofmt -l $GOROOT/src real 0m9.070s (= -21%) R=r CC=golang-dev https://golang.org/cl/5432054
-
Andrew Balholm authored
Pass tests2.dat, test 57: <!DOCTYPE html><!--x-- | <!DOCTYPE html> | <!-- x --> | <html> | <head> | <body> Also pass test 58: <!DOCTYPE html><table><tr><td></p></table> R=nigeltao CC=golang-dev https://golang.org/cl/5436048
-
Andrew Gerrand authored
R=rsc, r, dsymonds, bradfitz CC=golang-dev https://golang.org/cl/5416056
-
Rob Pike authored
There's version skew with respect to the programs in doc/progs. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5433048
-
Russ Cox authored
Fixes #2484. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5417059
-
Russ Cox authored
The allowed conversions before and after are: type Tstring string type Tbyte []byte type Trune []rune string <-> string // ok string <-> []byte // ok string <-> []rune // ok string <-> Tstring // ok string <-> Tbyte // was illegal, now ok string <-> Trune // was illegal, now ok Tstring <-> string // ok Tstring <-> []byte // ok Tstring <-> []rune // ok Tstring <-> Tstring // ok Tstring <-> Tbyte // was illegal, now ok Tstring <-> Trune // was illegal, now ok Update spec, compiler, tests. Use in a few packages. We agreed on this a few months ago but never implemented it. Fixes #1707. R=golang-dev, gri, r CC=golang-dev https://golang.org/cl/5421057
-
Russ Cox authored
Fixes #2486. R=golang-dev, hanwen CC=golang-dev https://golang.org/cl/5417064
-
Dmitriy Vyukov authored
R=golang-dev, rsc CC=golang-dev, mpimenov https://golang.org/cl/5375042
-
Andrew Balholm authored
Pass tests2.dat, test 50: <!DOCTYPE html><html><body><html id=x> | <!DOCTYPE html> | <html> | id="x" | <head> | <body> Also pass tests through test 56: <!DOCTYPE html>X<p/x/y/z> R=nigeltao CC=golang-dev https://golang.org/cl/5432045
-
- 21 Nov, 2011 8 commits
-
-
Andrew Balholm authored
Pass tests2.dat, test 47: " \n " (That is, two spaces separated by a newline) | <html> | <head> | <body> Also pass tests through test 49: <!DOCTYPE html><script> </script> <title>x</title> </head> R=nigeltao CC=golang-dev https://golang.org/cl/5422043
-
Andrew Gerrand authored
goinstall: don't hit network unless a checkout or update is required R=rsc, rogpeppe CC=golang-dev https://golang.org/cl/5343042
-
Adam Langley authored
OpenSSL 1.0.0 has switched to generating PKCS#8 format private keys by default. This change allows http.ListenAndServeTLS to work with either types of keys. See http://groups.google.com/group/golang-nuts/browse_thread/thread/84715b5f0c9e3c30/63a8a27b53e102a6 R=bradfitz CC=golang-dev https://golang.org/cl/5416059
-
Benny Siegert authored
R=golang-dev, gri CC=golang-dev https://golang.org/cl/5415062
-
Brad Fitzpatrick authored
Before json.BenchmarkCodeEncoder 10 181232100 ns/op 10.71 MB/s json.BenchmarkCodeMarshal 10 184578000 ns/op 10.51 MB/s After: json.BenchmarkCodeEncoder 10 146444000 ns/op 13.25 MB/s json.BenchmarkCodeMarshal 10 151428500 ns/op 12.81 MB/s R=rsc, r CC=golang-dev https://golang.org/cl/5416046
-
Charles L. Dorian authored
For amd64, from 127 to 105 ns/op; for 386, from 208 to 169 ns/op. R=rsc, golang-dev CC=golang-dev https://golang.org/cl/5412056
-
Lucio De Re authored
exec_plan9.go: . Adjusted return argument to match other changes. #mksyscall.pl: . Replaced "err = e1" with "err = NewError(e1)". * Change abandoned, Russ made a better suggestion involving syscall_plan9.go. syscall_plan9.go: . Removed redundant "err = nil" lines. . Adjusted //sys lines for mksyscall.pl. * Replaced "err string" with "err ErrorString" in return arguments. zsyscall_plan9_386.go: . This module ought to be generated, but as it exists in the repository, I rebuilt it and checked that it matched expectations. Anybody is welcome to remove this from the repository if they feel it should go, but remember that not all Plan 9 installations have a working Perl. R=rsc CC=ality, golang-dev https://golang.org/cl/5411046
-
Russ Cox authored
Also introduce a new insertion heuristic: insert new import next to existing import with the longest matching prefix. R=golang-dev, adg, gri CC=golang-dev https://golang.org/cl/5412053
-
- 20 Nov, 2011 4 commits
-
-
Brad Fitzpatrick authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5415055
-
Dave Cheney authored
This CL inverts the direction of the Stdin/out/err members of the Session struct so they reflect the API of the exec.Cmd. In doing so it borrows heavily from the exec package. Additionally Shell now returns immediately, wait for completion using Wait. Exec calls Wait internally and so blocks until the remote command is complete. Credit to Gustavo Niemeyer for the impetus for this CL. R=rsc, agl, n13m3y3r, huin, bradfitz CC=cw, golang-dev https://golang.org/cl/5322055
-
Andrew Balholm authored
My excuse for doing this is that test cases with newlines in them didn't work. But instead of just fixing that, I rearranged everything in parse_test.go to use fewer channels and pipes, and just call a straightforward function to read test cases from a file. R=nigeltao CC=golang-dev https://golang.org/cl/5410049
-
Nigel Tao authored
x-go-binding.googlecode.com. R=rsc, rogpeppe CC=golang-dev https://golang.org/cl/5406041
-
- 19 Nov, 2011 6 commits
-
-
Sébastien Paolacci authored
R=golang-dev, mikioh.mikioh, rsc CC=golang-dev https://golang.org/cl/5369092
-
Robert Griesemer authored
Slight slow-down for printer benchmark (-0.7%) before applying CL 5416049 (which will wash it out). Code is cleaner and simpler. R=rsc CC=golang-dev https://golang.org/cl/5417053
-
Mikio Hara authored
R=adg, golang-dev CC=golang-dev https://golang.org/cl/5417052
-
Lucio De Re authored
R=rsc CC=golang-dev https://golang.org/cl/5316059
-
Robert Griesemer authored
Cleanup and slight performance improvement (1.5%). Before (best of 3 runs): printer.BenchmarkPrint 50 47377420 ns/op After (best of 3 runs): printer.BenchmarkPrint 50 46707180 ns/op R=rsc CC=golang-dev https://golang.org/cl/5416049
-
Scott Lawrence authored
Fixes #2327. R=golang-dev, rsc, roberto, jdpoirier CC=golang-dev https://golang.org/cl/5375049
-
- 18 Nov, 2011 1 commit
-
-
Andrew Gerrand authored
See http://weekly.golang.org/pkg/html/template/ R=golang-dev, r, rsc CC=golang-dev https://golang.org/cl/5413055
-