Support for 'goimport' #7

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

Comments

Projects
None yet
3 participants
@webRat

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.

Show comment
Hide comment
@David5i6

David5i6 Nov 6, 2014

Owner

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

Owner

David5i6 commented Nov 6, 2014

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

@webRat

This comment has been minimized.

Show comment
Hide comment
@webRat

webRat 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.

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.

Show comment
Hide comment
@diogomonica

diogomonica May 16, 2015

What is the current status of goimports support?

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