doc: Updated links for sub-repository documentation.

Use godoc.org instead of gopkgdoc.appspot.com.

R=golang-dev, minux.ma
CC=golang-dev
https://codereview.appspot.com/7036051

Committer: Andrew Gerrand <adg@golang.org>
go/types: less closure creations in gcimporter.

Closures are incredibly expensive on linux/arm due to
repetitive flush of instruction cache.

go test -short on ODROID-X:

Before:
ok      exp/gotype      17.091s
ok      go/types        2.225s

After:
ok      exp/gotype      7.193s
ok      go/types        1.143s

R=dave, minux.ma, rsc
CC=golang-dev, remy
https://codereview.appspot.com/7062045
A+C: Caleb Spare (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://codereview.appspot.com/7070046
encoding/json: documented that ,string applies only to string and numeric fields.

Fixes issue 4437.

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

Committer: Andrew Gerrand <adg@golang.org>
bytes: Examples recommending bytes.Compare(a, b) rel_op 0 to test a rel_op b.

R=golang-dev, minux.ma, rsc, adg
CC=golang-dev
https://codereview.appspot.com/7042045

Committer: Andrew Gerrand <adg@golang.org>
src: Use bytes.Equal instead of bytes.Compare where possible.

bytes.Equal is simpler to read and should also be faster because
of short-circuiting and assembly implementations.

Change generated automatically using:
  gofmt -r 'bytes.Compare(a, b) == 0 -> bytes.Equal(a, b)'
  gofmt -r 'bytes.Compare(a, b) != 0 -> !bytes.Equal(a, b)'

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

Committer: Andrew Gerrand <adg@golang.org>
bytes: fix docs: s/array/slice/.

R=rsc, mdempsky, dave
CC=golang-dev
https://codereview.appspot.com/7028051
cmd/gofmt, bufio, image: Consistency and error handling.

cmd/gofmt: Add error handling for ioutil.WriteFile.
bufio: Consistency, rename e to err.
image: Consistency, fix comment for asReader.

R=golang-dev, dave, minux.ma, adg
CC=golang-dev
https://codereview.appspot.com/7029056

Committer: Andrew Gerrand <adg@golang.org>
misc/dashboard/builder: set GOPATH before building subrepos

This proposal updates the dashboard builder to avoid relying on the (soon to be removed) support for using go get to download to $GOROOT. The result is

WORKSPACE=$(the value of the -buildRoot flag / $BUILDER_NAME + hg revision)
GOROOT=$WORKSPACE/go
GOPATH=$WORKSPACE

Required for CL 6941058.

R=minux.ma, adg
CC=golang-dev
https://codereview.appspot.com/7034049
spec: Use "non-negative" instead of "positive"

Replacing division-by-power-of-2 with right-shift is valid for
zero too.

R=gri
CC=golang-dev
https://codereview.appspot.com/7027049

Committer: Robert Griesemer <gri@golang.org>
os: fix Open for empty root directories on windows

Fixes issue 4601.

R=golang-dev, rsc, bradfitz, kardianos
CC=golang-dev
https://codereview.appspot.com/7033046
go/types: Set Signature.Recv for imported types

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

Committer: Robert Griesemer <gri@golang.org>
go/doc: trim only first space or newline from example output comment

Fixes issue 4487.

R=rsc
CC=golang-dev
https://codereview.appspot.com/7057048
bytes: Change Compare example to be consistent with sort.Search's.

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

Committer: Russ Cox <rsc@golang.org>
bytes: Fix missing godoc punctuation.

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

Committer: Russ Cox <rsc@golang.org>
      doc: two minor edits to contribute.html

- Missing parenthesis
- Fix bad phrasing

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

Committer: Russ Cox <rsc@golang.org>
os: document that Exit does not run deferred calls

Fixes issue 4101.

R=dsymonds, rsc
CC=golang-dev
https://codereview.appspot.com/7065048
cmd/gc, cmd/ld: rename -b to -race

There's no b in race detector.
The new flag matches the one in the go command
(go test -race math).

R=golang-dev, dsymonds
CC=golang-dev
https://codereview.appspot.com/7072043
cmd/vet: %#q is a valid format (uses raw quotes).

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7057051
image/jpeg: handle those (unusual) grayscale images whose sampling
ratio isn't 1x1.

Fixes issue 4259.

The test data was generated by
cjpeg -quality 50 -sample 2x2 video-005.gray.pgm > video-005.gray.q50.2x2.jpeg
cjpeg -quality 50 -sample 2x2 -progressive video-005.gray.pgm > video-005.gray.q50.2x2.progressive.jpeg

similarly to video-005.gray.q50.* from
http://code.google.com/p/go/source/detail?r=51f26e36ba98
the key difference being the "-sample 2x2".

R=rsc
CC=golang-dev
https://codereview.appspot.com/7069045