godoc: don't convert multi-line functions into one-liners by default

- new heuristic: if both the opening { and closing } braces are on the
  same line, and the function body doesn't contain comments or is other-
  wise too long (e.g. signature too long), it is formatted as a one-line
  function

- related cleanups along the way

- gofmt -w src misc led to no additional changes as expected

R=rsc, rsc1
CC=golang-dev, ken2, r
https://golang.org/cl/758041
9 files changed
tree: c1f1345326bda0e868be7ced64c5d8c830cf1825
  1. doc/
  2. include/
  3. lib/
  4. misc/
  5. pkg/
  6. src/
  7. test/
  8. .hgignore
  9. .hgtags
  10. AUTHORS
  11. CONTRIBUTORS
  12. favicon.ico
  13. LICENSE
  14. README