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>
spec: add another sentence about BOMs
Although one may argue that they should be legal, gc (at least)
disallows byte order marks that are not the first code point
in the file. Added a sentence to the "Implementation restriction"
clause in the "Source code representation" section to document
this better.

Lifting this restriction (again - the rule has changed at least
twice already) would not break any existing programs, should
we later decide yet again to fiddle the rules about these little
fly specks.

R=golang-dev, dsymonds, gri
CC=golang-dev
https://codereview.appspot.com/8649043
gc: escape unicode BOM in exported string literals

Fixes issue 5260.

R=golang-dev, minux.ma, 0xjnml, r
CC=golang-dev
https://codereview.appspot.com/8658043

Committer: Rob Pike <r@golang.org>
encoding/json: documentation regarding anonymous fields.

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