Gopher Brad Fitzpatrick has written https://github.com/bradfitz/goimports/, a
fork of gofmt that tries to intelligently add or remove imports. It looks great
for, say, temporarily dropping in a fmt.Println() in a module for debugging.
I'm using it now by just replacing the distribution's gofmt binary with it, but
a config option or env variable (GOFMT=?) would make it cleaner.
Original issue reported on code.google.com by twotwo...@gmail.com on 17 Nov 2013 at 12:19
Original issue reported on code.google.com by
twotwo...@gmail.com
on 17 Nov 2013 at 12:19