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

Re-sort imports according to goimports tool #6

Merged
merged 1 commit into from
Feb 19, 2017

Conversation

bretep
Copy link
Contributor

@bretep bretep commented Feb 15, 2017

Command goimports updates your Go import lines, adding missing ones and removing unreferenced ones.

It's a drop-in replacement for your editor's gofmt-on-save hook. It has the same command-line interface as gofmt and formats your code in the same way.

Reference https://godoc.org/golang.org/x/tools/cmd/goimports

@jacksontj jacksontj merged commit c2b3dc6 into jacksontj:master Feb 19, 2017
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

Successfully merging this pull request may close these issues.

2 participants