Skip to content

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%