Skip to content

Improved goimports, make your Go code cleaner by fixing (add, remove) the imports automatically.

License

Notifications You must be signed in to change notification settings

ishare/goimports

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Improved goimports, make your Go code cleaner by fixing (add, remove) the imports automatically.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%