net/http: do not send leading dot in cookie domain attribute

RFC 6265 allows a leading dot in a cookie domain attribute
but is clear (see section 4.1.1) that a Set-Cookie header
should be sent without these dots.

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
C: add JP Sugarbroad (Google CLA)

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/13232043
bytes, strings: use copy in Repeat

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

Committer: Andrew Gerrand <adg@golang.org>
net: enable PacketConn test for raw IP network on Windows

Just forgot to include this in CL 12843043.
Also consolidates the code dealing with test environment.

Update issue 6122

R=alex.brainman
CC=golang-dev
https://codereview.appspot.com/13184043
text/template: make the escapers for HTML etc. handle pointers correctly
Apply the same rules for argument evaluation and indirection that are
used by the regular evaluator.

Fixes issue 5802

R=golang-dev, dsymonds
CC=golang-dev
https://codereview.appspot.com/13257043
doc/go1.2.txt: dereference pointer values when evaluating args for escape funcs

R=golang-dev, adg
CC=golang-dev
https://codereview.appspot.com/13262043
net: have separate read and write processing threads on windows

Fixes issue 4195

R=golang-dev, mikioh.mikioh
CC=golang-dev
https://codereview.appspot.com/12960046
encoding/binary: use bytes.Reader in read example

R=golang-dev, dave
CC=golang-dev
https://codereview.appspot.com/13274043

Committer: Brad Fitzpatrick <bradfitz@golang.org>
cmd/gc: mark panicslice as unlikely

No measurable impact on performance on amd64

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
misc/emacs: allow users to customize path of 'go' tool.

Some users have multiple Go development trees and invoke the
'go' tool via a wrapper that sets GOROOT and GOPATH based on
the current directory.  Such users should customize go-command
to point to the wrapper script.

R=dominik.honnef
CC=golang-dev
https://codereview.appspot.com/13233043
sort: harden limit in stable test

Reduce the number of allowed swap operations during stable sort.?

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
go/ast: fix comment formatting

A bullet list was getting mangled in godoc.

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
misc/pprof: pprof http used with net/http/pprof not working on windows/amd64

Removed posix assumptions in temporary file generation
Removed curl dependence
Changed opening of svg file

These must now work including symbol resolution.
[1] go tool pprof <prog_name> http://.../debug/pprof/profile
[2] go tool pprof http://.../debug/pprof/profile

Fixes 6177.

R=golang-dev, alex.brainman, bradfitz, kamil.kisiel
CC=golang-dev
https://codereview.appspot.com/13085043

Committer: Brad Fitzpatrick <bradfitz@golang.org>
cmd/5g: avoid clash between R13 and F3 registers.

Fixes issue 6247.

R=golang-dev, lucio.dere, bradfitz
CC=golang-dev
https://codereview.appspot.com/13216043
cmd/gc: tag builtin error, byte, rune to avoid exporting them.

Fixes issue 5910.
Fixes issue 6260.

R=golang-dev, daniel.morsing
CC=golang-dev
https://codereview.appspot.com/13257044
net/smtp: clarify that SendMail's auth param is optional

It wasn't obvious that the Auth could be nil.

R=golang-dev, iant
CC=golang-dev
https://codereview.appspot.com/13060048
net/http: document Request.Body more

Fixes issue 6221

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/13289043
C: add Asim Shankar (Google CLA)

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/13313043
sync: improve once.Do documentation readability

The previous wording, though accurate, was hard to parse.
In particular, it was tempting to interpret "the method"
as referring to "the function f" instead of "Do", and
required effort to find the correct antecedent for
"this receiver".

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

Committer: Rob Pike <r@golang.org>
text/template: allow {{else if ... }} to simplify if chains
The method is simple: the parser just parses

        {{if A}}a{{else if B}}b{{end}}

to the same tree that would be produced by

        {{if A}}a{{else}}{{if B}}b{{end}}{{end}}

Thus no changes are required in text/template itself
or in html/template, only in text/template/parse.

Fixes issue 6085

R=golang-dev, adg
CC=golang-dev
https://codereview.appspot.com/13327043