cmd/ld: fix argument passing in doc.go

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/8622043
encoding/json: different decision on tags and shadowing
If there are no tags, the rules are the same as before.
If there is a tagged field, choose it if there is exactly one
at the top level of all fields.
More tests. The old tests were clearly inadequate, since
they all pass as is. The new tests only work with the new code.

R=golang-dev, iant
CC=golang-dev
https://codereview.appspot.com/8617044
go/ast: distinguish between methods and functions in filtering

Go1.1 harmless, but not critical.

Fixes issue 5249.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/8609043
fmt: tweak the explanation of Stringer to be more correct and less specific
The String method is called whenever the printing operation wants a string,
not just for %s and %v.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/8638043
cmd/ld: fix scope of static objects in symbol table

All symbols are currently marked with global scope.
The correct behavior was lost when the symbol table
format was changed.

R=golang-dev, iant, r
CC=golang-dev
https://codereview.appspot.com/8625043
bufio/Scan: fix error handling at EOF
Fixes issue 5268.

R=golang-dev, dsymonds, bradfitz
CC=golang-dev
https://codereview.appspot.com/8646045
    cmd/cgo, cmd/go: remove #cgo directive parsing from cmd/cgo

This change removes processing of #cgo directives from cmd/cgo,
pushing the onus back on cmd/go to pass all necessary flags.

Fixes issue 5224. See comments for rationale.

R=golang-dev, iant, r
CC=golang-dev
https://codereview.appspot.com/8610044

Committer: Rob Pike <r@golang.org>