github.com/homuler/goimports-wasabi (go): Command goimports-wasabi updates your Go import lines, adding missing ones and removing unreferenced ones.  In addition to fixing imports, goimports-wasabi also formats your code in the same style as gofmt so it can be used as a replacement for your editor's gofmt-on-save hook.  For emacs, make sure you have the latest go-mode.el:  Then in your .emacs file:  For vim, set "gofmt_command" to "goimports-wasabi":  For GoSublime, follow the steps described here:  For other editors, you probably know what to do.  To exclude directories in your $GOPATH from being scanned for Go files, goimports respects a configuration file at $GOPATH/src/.goimportsignore which may contain blank lines, comment lines (beginning with '#'), or lines naming a directory relative to the configuration file to ignore when scanning. No globbing or regex patterns are allowed. Use the "-v" verbose flag to verify it's working and see what goimports-wasabi is doing.  File bugs or feature requests at:  Happy hacking!
Keywords: go|goimports