Robert Griesemer [Mon, 9 Nov 2009 17:34:55 +0000 (09:34 -0800)]
fix for nodeSize computation, used to determine if
a node fits on one line:
- for purposes of measuring the node size in text,
don't generate html or use a styler that could
generate html as it will lead to overly large
sizes
A consequence of this bug is that source code displayed
with godoc may show functions that fit on one line in
the source on multiple lines.
This change causes no difference to the gofmt formatting
of any files in src or misc.
Robert Griesemer [Mon, 9 Nov 2009 07:34:08 +0000 (23:34 -0800)]
Addressing issue brought up by dsymonds:
- When providing alternative spellings to a query, do not
prefix it with a package qualifier as the suggestion may
not have any results. Correctly filtering is quite a bit
of work, and clicking the alternative spelling will always
also show the qualified hits if they exist (but also others).
Seems good enough for now.
- Give user feedback when the query syntax was wrong.
- Package names in search results are now links to the respective
package documentation.
- Experimented with excluding main packages and test files
from index with inconclusive results. Code is present and
can be enabled by changing a flag in the source. This needs
some more work.
Rob Pike [Mon, 9 Nov 2009 06:02:15 +0000 (22:02 -0800)]
make "Go for it" link to install.html.
delete the unnecessary "Programming in Go. Watch Now" from the right box.
center the video picture in the right box.
Russ Cox [Mon, 9 Nov 2009 05:46:20 +0000 (21:46 -0800)]
a nagging inconsistency: capitalization of
HTML vs Html, URL vs Url, HTTP vs Http,
current source is 6:1 in favor of the former,
so change instances of the latter.
Robert Griesemer [Mon, 9 Nov 2009 04:17:04 +0000 (20:17 -0800)]
use grouping instead of colors to show non-global search hits:
- introduced a new run per file containing all spots belonging
to the same kind (e.g. var decl, const decl, etc.)
- more comments, better index.go file organization
Robert Griesemer [Mon, 9 Nov 2009 00:47:32 +0000 (16:47 -0800)]
- properly align package synopses
(this was surprisingly hard to get right in HTML)
- show modification times in source directory listings
- various tweaks
Rob Pike [Sun, 8 Nov 2009 23:57:25 +0000 (15:57 -0800)]
add top-level package comments for net, reflect, malloc.
reflect is a little more detailed than some because it affords an opportunity
to explain how to approach the library.
Russ Cox [Sun, 8 Nov 2009 17:57:37 +0000 (09:57 -0800)]
add a README file, so that if someone finds a
go tar ball or finds themselves staring at
http://code.google.com/p/go/source/browse/,
there is an obvious path back to golang.org
Robert Griesemer [Sun, 8 Nov 2009 07:59:24 +0000 (23:59 -0800)]
- avoid division-by-zero crash in tabwriter
- correct tabwidth argument for some tabwriter test cases
- catch negative tabwidth flag in gofmt w/o crashing
Rob Pike [Sun, 8 Nov 2009 06:00:59 +0000 (22:00 -0800)]
fixes to spec. mostly minor but several of significance.
- carriage return is white space
- "" strings cannot span newlines
- f(g()) is ok if g is multivalue and matches f's args
Robert Griesemer [Sat, 7 Nov 2009 21:17:53 +0000 (13:17 -0800)]
- support to extract one-line package synopsis for package listings
- formatting in dirs.html is crude, needs better html (open to suggestions),
but shows the synopsis
- many package comments should probably be adjusted such that the first
sentence is more concise
Robert Griesemer [Sat, 7 Nov 2009 21:01:52 +0000 (13:01 -0800)]
- blank before opening { for multi-line composite literals (as preferred by r)
- blank padding around composite literal contents for a less dense look
(most if not all composite literals were written in that style before gofmt
ran through them)
- corresponding (internal) flag: compositeLitBlank
- don't print a semi after a one-statement statement list (as preferred by r)
- corresponding (internal flag): fewerSemis
- the number of changes in nodes.go is huge because of the removed semis;
hg mail requires that I gofmt the file before
With both flags set to false, this CL causes no gofmt formatting change. We
can turn them on if we like it (and then remove the flags). Will submit with
flags disabled.
Ian Lance Taylor [Sat, 7 Nov 2009 20:27:11 +0000 (12:27 -0800)]
Ignore more unimportant files.
- Emacs backup files.
- *.orig files left by hg merge conflicts.
- core files.
- generated enam.c files.
- runtime.acid now has an architecture.
Robert Griesemer [Fri, 6 Nov 2009 22:24:38 +0000 (14:24 -0800)]
- fine-tuning of one-line func heuristic (nodes.go)
- enabled for function declarations (not just function literals)
- applied gofmt -w $GOROOT/src
(look for instance at src/pkg/debug/elf/elf.go)
Robert Griesemer [Fri, 6 Nov 2009 01:02:29 +0000 (17:02 -0800)]
fix a comment formatting bug:
- this ensures better comment formatting in template.go and codec_test.go
- it affects only 2 files of all files that have been gofmt'ed already,
see separate CL (it fixes the same issue in those files)