There are some instructions in the docs for this: https://godoc.org/code.google.com/p/go.tools/cmd/goimports
For sublime users, see here: http://michaelwhatcott.com/gosublime-goimports/
It's a great tool, very convenient.
For sublime users, see here: http://michaelwhatcott.com/gosublime-goimports/
It's a great tool, very convenient.