(old repo) Tool to fix (add, remove) your Go imports automatically.
Go
Latest commit 919f4f2 Dec 11, 2014 @bradfitz Merge pull request #35 from ditashi/master
Apply new sub-repository import path as per Go1.4
Permalink
Failed to load latest commit information.
.gitignore add gitignore May 26, 2013
LICENSE readme Jun 1, 2013
README README: update import path Dec 3, 2014
goimports.go Apply new sub-repository import path Dec 11, 2014

README

This tool updates your Go import lines, adding missing ones and
removing unreferenced ones.

     $ go get golang.org/x/tools/cmd/goimports

     Note the new location. This project has moved to the official
     go.tools repo. Pull requests here will no longer be accepted.
     Please use the Go process: http://golang.org/doc/contribute.html

It acts the same as gofmt (same flags, etc) but in addition to code
formatting, also fixes imports.

See usage and editor integration notes, now moved elsewhere:

   http://godoc.org/golang.org/x/tools/cmd/goimports

Happy hacking!