net/http: sniff less

We were reading 1024 bytes but only using 512.

Fixes issue 6311

R=golang-dev, iant
CC=golang-dev
https://codereview.appspot.com/13289047
doc/go1.2.txt: crypto/{x509,tls} changes

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/13335050
net/http: remove dreg of obsoleted network poller

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/13261049
text/template: allow eq to take more than two arguments
Based on an old suggestion by rsc, it compares the second
and following arguments to the first.

Unfortunately the code cannot be as pretty as rsc's original
because it doesn't require identical types.

R=golang-dev, dsymonds, adg
CC=golang-dev
https://codereview.appspot.com/13509046
cmd/cgo: don't let #cgo directives mess up line numbering

Fixes issue 5272.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/13498046
cmd/cgo: document command line options

Also remove incorrect statement that cgo does not support
gccgo.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/13511043
cmd/ld: don't allocate unused garbage space in pclntab file table

Fixes issue 6319.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/13539043
A+C: Aulus Egnatius Varialus (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://codereview.appspot.com/13336045
cgo: enable cgo on dragonfly

Enable cgo for dragonfly/386 and dragonfly/amd64.

R=golang-dev, jsing, iant, bradfitz
CC=golang-dev
https://codereview.appspot.com/13247046

Committer: Ian Lance Taylor <iant@golang.org>
html/template: export the parse.Tree for the escaped template
The underlying parse tree is visible in text/template, so it should be visible here.
Done by copying the underlying *parse.Tree up to the top level of the struct, and then making sure it's kept up to date.
Fixes issue 6318.

R=mikesamuel
CC=golang-dev
https://codereview.appspot.com/13479044
compress/flate: use bytes.NewReader instead of NewBuffer in test

Also, report allocations in benchmark.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/13410044
cmd/dist: don't print misleading warning when using GOROOT_FINAL

Fixes issue 5240.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/13546044
reflect: do not cache trivial values in DeepEqual.

DeepEqual caches addresses of compared values
each time it visits addressable values. This is
more expensive than actually comparing them in
the common case of large slices of bytes or integers.

Also add a fast path for slices with identical
underlying array.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/13000044
compress/zlib: add Reset method to Writer.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/13171046
cmd/ld: emit relocations for .debug_frame in external link mode

This should have been part of revision 16731:cdedb129e020, but
I missed it.  This fixes printing local variables when doing
an external link.

No test because we aren't doing any debug info testing yet.

Fixes issue 5719.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/13464046
undo CL 13004046 / 5db14b33d6ef

Flushing after every token negates the point of buffering. A different approach is required.

««« original CL description
encoding/xml: flush buffer after encoding token

R=rsc, bradfitz, adg
CC=golang-dev
https://codereview.appspot.com/13004046

Committer: Andrew Gerrand <adg@golang.org>
»»»

R=golang-dev, adg, rsc
CC=golang-dev
https://codereview.appspot.com/13515043
test/nilptr: add more tests

These tests were suggested in golang.org/issue/6080.
They were fixed as part of the new nil pointer checks
that I added a few weeks ago.

Recording the tests as part of marking the issue closed.

Fixes issue 6080.

R=golang-dev, r, bradfitz
CC=golang-dev
https://codereview.appspot.com/13255049
cmd/go: don't leave test binary around for coverage
It's not needed to analyze coverage data.
Fixes issue 6120

R=golang-dev, adg
CC=golang-dev
https://codereview.appspot.com/13343050
cmd/dist: Plan 9 build needs an additional include path
cmd/cc: bv.c imports libc.h twice

When using the Plan 9 compiler, the invocation

        #include <../ld/textflag.h>

works for the toolchain, but not for the MACH library.

Module cmd/cc/bv.c includes libc.h and "cc.h", which in
turn also includes libc.h.  In the Plan 9 context, this
causes a number of duplicate definitions.

R=golang-dev, rsc, r
CC=golang-dev
https://codereview.appspot.com/13303047

Committer: Rob Pike <r@golang.org>
misc/notepadplus: add interface to function list and use clang color in comments

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/13587043

Committer: Brad Fitzpatrick <bradfitz@golang.org>