Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use goimports on save if available #59

Open
magisterquis opened this issue Jul 6, 2016 · 1 comment
Open

Use goimports on save if available #59

magisterquis opened this issue Jul 6, 2016 · 1 comment

Comments

@magisterquis
Copy link

Since goimports is a superset of gofmt functionality, (perhaps optionally) using it instead of gofmt on save not only formats code, but handles imports as well.

@parkr
Copy link

parkr commented Jul 13, 2016

It may be helpful to know that simply putting goimports into TM_GOFMT doesn't work – goimports expects input from stdin and that's not how it works at the moment with gofmt in this bundle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants