|
|
|
|
|
by kilburn
4666 days ago
|
|
Yes, but you shouldn't ever see single-line ifs in go, because gofmt forces all of them to be multi-line. This is one of the strong points of go (whether you like it or hate it): gofmt imposes the same formatting rules for everyone using the language. It's not a choice for you (or your project) to make. Period. |
|