Descriptiongo.tools/imports: If func main() exists, add package declaration
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.
Patch Set 1 #Patch Set 2 : diff -r f8e4c8ae7a71 https://code.google.com/p/go.tools #Patch Set 3 : diff -r f8e4c8ae7a71 https://code.google.com/p/go.tools #
MessagesTotal messages: 4
|