1
0
mirror of https://github.com/golang/go synced 2024-11-20 01:04:40 -07:00
go/src/cmd/gofmt
Robert Griesemer 3ee87d02b0 cmd/godoc: use go/build to determine package and example files
Also:
- faster code for example extraction
- simplify handling of command documentation:
  all "main" packages are treated as commands
- various minor cleanups along the way

For commands written in Go, any doc.go file containing
documentation must now be part of package main (rather
then package documentation), otherwise the documentation
won't show up in godoc (it will still build, though).

For commands written in C, documentation may still be
in doc.go files defining package documentation, but the
recommended way is to explicitly ignore those files with
a +build ignore constraint to define package main.

Fixes #4806.

R=adg, rsc, dave, bradfitz
CC=golang-dev
https://golang.org/cl/7333046
2013-02-19 11:19:58 -08:00
..
testdata all: remove exec bit on files 2013-01-18 02:41:17 +08:00
doc.go cmd/godoc: use go/build to determine package and example files 2013-02-19 11:19:58 -08:00
gofmt_test.go cmd/gofmt, bufio, image: Consistency and error handling. 2013-01-07 11:15:53 +11:00
gofmt.go go/parser: cleanups following CL 7307085 2013-02-14 13:36:40 -08:00
long_test.go src: Use bytes.Equal instead of bytes.Compare where possible. 2013-01-07 10:03:49 +11:00
rewrite.go gofmt: handle comments correctly in rewrites 2012-06-25 13:58:28 -07:00
simplify.go gofmt: simplify slices of the form s[a : len(s)] to s[a:] 2012-10-31 11:48:55 -07:00