1
0
mirror of https://github.com/golang/go synced 2024-10-05 18:21:21 -06:00
go/src/cmd/8g
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
..
cgen64.c cmd/gc: contiguous loop layout 2012-05-30 18:07:39 -04:00
cgen.c cmd/dist, cmd/8g: implement GO386=387/sse to choose FPU flavour. 2013-01-02 22:55:23 +01:00
doc.go cmd/godoc: use go/build to determine package and example files 2013-02-19 11:19:58 -08:00
galign.c cmd/gc: prepare for 64-bit ints 2012-09-24 14:59:44 -04:00
gg.h cmd/dist: add -Wstrict-prototypes to CFLAGS and fix all the compiler errors 2013-02-05 21:43:04 +08:00
ggen.c cmd/8g: fix sse2 compare code gen 2013-02-14 14:49:04 -05:00
gobj.c cmd/{5,6,8}g: reduce size of Prog and Addr 2012-12-14 06:20:24 +11:00
gsubr.c cmd/8g: add a few missing splitclean 2013-02-07 17:55:25 -05:00
list.c cmd/dist, cmd/8g: implement GO386=387/sse to choose FPU flavour. 2013-01-02 22:55:23 +01:00
Makefile build: delete make paraphernalia 2012-02-06 13:34:25 -05:00
opt.h cmd/[568]g: explain the purpose of various Reg fields. 2012-09-24 20:55:11 +02:00
peep.c cmd/6g, cmd/8g: Allow optimization of return registers. 2013-01-11 15:44:42 +01:00
reg.c cmd/gc: slightly better code generation 2013-02-03 14:51:21 -05:00