3 ms·
I thought large Go codebases relied almost religiously on `gofmt`.
by dcow 5y ago
I thought large Go codebases relied almost religiously on `gofmt`.
- Intermernet 5y agoThere'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!
- Matrixik 5y agoOr even better `gofumpt` that is more strict.