Skip to content

brianstarke/atom-go-imports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-imports package

NOTE!

In the latest builds of Atom, this no longer works so I've unpublished it until such time that I can fix it. I highly recommend the excellent go-plus package as a replacement.

Runs goimports on file save.

A screenshot of your spankin' package

goimports also executes go fmt, so you don't need to do both.

You must have goimports already installed for this to work.

$ go get code.google.com/p/go.tools/cmd/goimports

See goimports for more information.

NOTE

You may have to set the full path to goimports in the settings.

$ which goimports
/Users/brianstarke/go/bin/goimports

Definite hat tip to lsegal's atom-go-format for inspiration, I used his project as a jumping off point.

About

Atom package that runs goimports / go fmt on file save.

Resources

License

Stars

Watchers

Forks

Packages