by lmilcin · 9y ago · 0 comments
Only if you don't care about the indent size, which many people do (otherwise we wouldn't be having this discussion).
I mean you may as well say everyone should use Times New Roman because then it always looks good.
Tabs first, ALWAYS, one tab is one level of indent.
go fmt uses the UNIX lineage of defaulting to 8 spaces converting to a tab (worded in reverse).
Your editor should easily display tab stops at a value that is ideal for you; you could set this to 2, 3, 4, or any other value if it makes things more readable to you.
Unless your team has a very strict "80 chars max" limit on line width I guess.