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

Support for 'goimport' #7

Closed
webRat opened this Issue Nov 6, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@webRat
Copy link

webRat commented Nov 6, 2014

http://godoc.org/code.google.com/p/go.tools/cmd/goimports

Can we get support for goimports in this project? Does this project support 'go fmt'? If so, dropping in goimports should be pretty easy / simple.

Thanks.

@David5i6

This comment has been minimized.

Copy link
Owner

David5i6 commented Nov 6, 2014

A menu with gofmt and others commands (perhaps goimports) is planned.

@webRat

This comment has been minimized.

Copy link
Author

webRat commented Nov 6, 2014

Just to be clear, goimports is go fmt + some changes by Brad Fitzpatrick (One of the Go Authors). What's neat about goimport is that it will write the import() after you've written your func main() program. So, you have a line in the body that is using fmt.Println() and goimport will add Import ( "fmt" ) at the top.

Ideally, whatever menu driven thing you use for gofmt could be interchanged with goimport.

@diogomonica

This comment has been minimized.

Copy link

diogomonica commented May 16, 2015

What is the current status of goimports support?

@webRat webRat closed this May 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment