1
0
mirror of https://github.com/golang/go synced 2024-11-22 22:40:02 -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 arm: add gdb support to android launcher script 2010-07-30 10:35:07 +03:00
bash misc/bash: Completion for go tool. 2012-02-28 07:41:49 +11:00
bbedit misc/bbedit: error and rune support 2011-11-14 11:18:00 -08:00
cgo build: clang support 2013-02-15 13:37:43 -08:00
chrome/gophertool gophertool: fix links 2012-10-22 01:05:21 +08:00
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 misc: update type + builtin lists found in editor support files 2011-01-19 23:07:49 -05:00
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 misc: syntax highlighting support on IntelliJ IDEA 2011-05-20 11:03:33 -07:00
kate kate: add error and rune 2011-11-14 11:16:06 -08:00
notepadplus misc/notepadplus: error and rune support 2011-11-14 11:19:08 -08:00
osx misc/osx: update for dist tool, drop image.bash, update readme 2012-02-07 14:37:57 +11:00
swig cmd/go, go/build, misc/swig: add SWIG support to Go tool 2012-08-03 18:08:43 -07:00
vim misc/vim: update installation instructions to work better with some Linux distributions. 2013-02-18 14:03:47 +11:00
xcode misc/xcode: fix typos 2012-03-05 15:50:48 -08:00
zsh testing: change -test.benchtime to a flag.Duration. 2012-10-09 08:57:29 +11:00
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