1
0
mirror of https://github.com/golang/go synced 2024-11-22 18:44:54 -07:00
go/misc
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
..
arm
bash
bbedit
cgo build: clang support 2013-02-15 13:37:43 -08:00
chrome/gophertool
dashboard cmd/godoc: use go/build to determine package and example files 2013-02-19 11:19:58 -08:00
dist go/misc/dist: Keep file modes when copying. 2013-01-29 15:17:39 -08:00
emacs misc/emacs: update go-mode syntax table and comment handling as 2013-01-09 10:26:34 -05:00
fraise
git misc/git: add gofmt git pre-commit hook 2012-11-15 19:58:49 +01:00
goplay cmd/godoc: use go/build to determine package and example files 2013-02-19 11:19:58 -08:00
IntelliJIDEA
kate
notepadplus
osx
swig
vim misc/vim: update installation instructions to work better with some Linux distributions. 2013-02-18 14:03:47 +11:00
xcode
zsh
benchcmp misc/benchcmp: show byte allocation statistics 2012-12-22 14:51:16 -05:00
pprof misc/pprof: don't look for browser in current directory. 2012-12-21 20:40:44 +01:00