3 ms·
> If you're worried about lining up all your code in perfect multi-line arrangements, maybe rethink your life. But...`go fmt` does this for you :-) type M
by staunch 13y ago
> If you're worried about lining up all your code in perfect multi-line arrangements, maybe rethink your life.
But...`go fmt` does this for you :-)
type Magic struct {
CastingCost string
Id int
}
Even though I'm not really a fan of the choice myself.
- jff 13y agoYep... although if you look at that, it's just lining up based on tabs. I like gofmt because it barely ends up changing my code--I already write it pretty much like that! I was talking more about when people want to do things like this: func someFunc(arg1 string, arg2 string, arg3 int, ) bool { and get very angry when the arguments don't line up perfectly under each other using just tabs. And, presumably, that Go won't let you put that { on the next line like that. When I tell these people I often use an editor with variable-width fonts, it damn near gives them an aneurysm.