tools/cmd
Stephen Weinberg 55d5722095 imports, cmd/goimports: add missing package main if func main exists
Assuming:
        1) package declaration does not exist
        2) the Fragment option is set
        3) a main function exists

We will assume it is a main package and add the declaration.

This change also sets the Fragment option in goimports.

LGTM=crawshaw, bradfitz
R=bradfitz, crawshaw
CC=golang-codereviews
https://golang.org/cl/96850044
2014-04-28 17:15:33 -04:00
..
benchcmp go.tools/cmd/benchcmp: expand documentation 2014-04-14 17:00:04 -07:00
cover go.tools/cover: split parsing code out from cmd/cover 2013-12-03 20:55:21 -08:00
eg go.tools/cmd/eg: Use Print, not Printf, to print Help string. 2014-04-25 12:03:38 -04:00
godex go.tools/cmd/godex: make relative package paths work 2014-04-18 12:44:23 -04:00
godoc cmd/godoc: wait up to 500ms for results of -analysis=type. 2014-04-21 17:56:06 -04:00
goimports imports, cmd/goimports: add missing package main if func main exists 2014-04-28 17:15:33 -04:00
gotype cmd/gotype: add -gccgo flag 2014-01-08 15:25:17 -08:00
html2article go.tools/cmd/html2article: move command from go.blog repository 2013-09-27 10:40:53 +10:00
oracle go.tools: rename packages. 2014-01-16 09:33:58 -05:00
ssadump go.tools/go/ssa: perform nil check when taking value of interface method. 2014-04-09 18:00:57 -04:00
vet vet: Don't consider %T for recursive stringers. 2014-03-14 16:08:04 +11:00