Re:Effective Go
by rogerbinns on Tuesday July 24, 2012 @05:20PM
(#4288071)
From the topmost section:
We use tabs for indentation and gofmt emits them by default. Use spaces only if you must
Re:Effective Go
by georgemcbay on Tuesday July 24, 2012 @06:43PM
(#4288422)
Code formatting conformity is pretty big in the Go culture.
Go the language doesn't care if you use tabs or spaces, Go the community would prefer you to use tabs so when your Go code is loaded in whatever random editor any member of the community uses there are no surprises.
The only whitespace character that works differently than C is the newline. In Go, newlines (usually) separate statements, like a semicolon does in C.