Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 665 Bytes

README.md

File metadata and controls

29 lines (15 loc) · 665 Bytes

goimports

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

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

Improved bradfitz/goimports, better style like the following screenshot.

Screenshot

install

run the following command:

$ go get github.com/ishare/goimports

For more usage guide, type goimports --help.

intellij plugin

Config for File Wathcer plugin, which can be downloaded from intellij repo.

Screenshot

Happy hacking!