5 ms·
There are some instructions in the docs for this: https://godoc.org/code.google.com/p/go.tools/cmd/goimports https://godoc.org/code.google.com/p/go.tools/cmd/go
by kevrone 12y ago
There are some instructions in the docs for this: https://godoc.org/code.google.com/p/go.tools/cmd/goimports https://godoc.org/code.google.com/p/go.tools/cmd/goimports
For sublime users, see here: http://michaelwhatcott.com/gosublime-goimports/ http://michaelwhatcott.com/gosublime-goimports/
It's a great tool, very convenient.
- artursapek 12y agoOne of the things I love most about Go is how everything you need comes with the language, unlike many language ecosystems where you have to depend on third parties for profilers, plugins, etc.