News for hackers. Stuff that matters.
Re:Half a million lines of Go by dcow on Monday May 17, 2021 @12:30AM (#27180059)
I thought large Go codebases relied almost religiously on `gofmt`.
Re:Half a million lines of Go by Intermernet on Monday May 17, 2021 @04:36AM (#27181257)
There's obviously more to style than code formatting, but yeah, every Go codebase should rely on gofmt. I'd go so far to say that every language should have an equivalent to gofmt. There are so many advantages, the least of which is eliminating meaningless diffs in git where (for example) one person used spaces and put a new line before the opening brace of a function, while the other person used tabs and put the opening brace on the same line as the function definition. That drives me crazy in other languages!
Re:Half a million lines of Go by Matrixik on Monday May 17, 2021 @05:05AM (#27181427)
Or even better `gofumpt` that is more strict.