News for hackers. Stuff that matters.
Re:gofumpt: It's like gofmt except more strict by mvdan on Saturday February 11, 2023 @06:04AM (#34751242)
I agree that empty lines can help. I've been careful to only remove empty lines which, in my opinion, don't help when structuring the code or making it more readable.

If you have examples where gofumpt is being a bit too aggressive, I'd like to hear about them. I've corrected, and even removed, some of gofumpt's rules in the past thanks to user input.

Re:gofumpt: It's like gofmt except more strict by oefrha on Saturday February 11, 2023 @12:52PM (#34754530)
I use gofumpt for all my go code (have been for at least two years), and I use empty lines for structure. Out of the tens to hundreds of thousands lines written, I don’t recall a single instance where an intentional empty line was removed. I doubt gp’s comment is based on experience. Another giveaway is the “seems” at the very beginning.