SyntaxFix
Write A Post
Hire A Developer
Questions
As of now, the Go compiler generates identical code in both cases, so it is a matter of taste. GCCGo does generate different code, but barely anyone uses it so I wouldn't worry about that.
https://godbolt.org/z/fib1x1