Skip to content

What do now gofumports is gone? #134

Closed Answered by mvdan
ghost asked this question in Q&A
Jul 21, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Could you please explain what you want to use gofumports for?

As for the more detailed historical background - I didn't want to write lots in the release notes, because I felt like that would be too verbose.

The reason it was created was for IDEs years ago, before gopls was a thing. Most IDEs just allowed swapping "gofmt on save" with a different tool, like goimports. So, if you wanted to get goimports plus gofumpt, you couldn't really. That's why I created a horrible hack: a merge of the two into a single tool.

It was a horrible hack, though, and always meant as a temporary solution. It meant copying many more tens of thousands of lines of code, it made the project harder to maintain and…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected by mvdan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants