Descriptioncmd/gofmt: sort more, remove some duplicate imports
* Sort imports by import path, then import name, then comment. Currently, gofmt sorts only by import path.
* If two imports have the same import path and import name, and one of them has no comment, remove the import with no comment. (See the discussion at issue 4414.)
Based on @rsc's https://codereview.appspot.com/7231070/
Fixes issue 4414.
Patch Set 1 #Patch Set 2 : diff -r 9f6a7e4c3f62 https://code.google.com/p/go #Patch Set 3 : diff -r ec64f75a7995 https://code.google.com/p/go #Patch Set 4 : diff -r ec64f75a7995 https://code.google.com/p/go #Patch Set 5 : diff -r ec64f75a7995 https://code.google.com/p/go #
Total comments: 2
MessagesTotal messages: 9
|