1
0
mirror of https://github.com/golang/go synced 2024-11-26 13:28:27 -07:00
go/lib/godoc
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
..
codewalk.html lib/godoc/codewalk.html: remove duplicate jquery inclusion 2012-11-18 02:28:54 +08:00
codewalkdir.html
dirlist.html
error.html
example.html lib/godoc/example.html: htmlify the play code 2012-12-13 19:08:51 +08:00
godoc.html godoc: add dropdown playground to nav bar 2012-10-10 11:17:47 +11:00
opensearch.xml
package.html cmd/godoc: use go/build to determine package and example files 2013-02-19 11:19:58 -08:00
package.txt cmd/godoc: use go/build to determine package and example files 2013-02-19 11:19:58 -08:00
search.html
search.txt