7 ms·
> - Why does go need := with the colon? I know it's a declaration, but I haven't figured out the reason for the colon.. Seems weird.. With ":=" will declare wi
by pkaye 7y ago
> - Why does go need := with the colon? I know it's a declaration, but I haven't figured out the reason for the colon.. Seems weird..
With ":=" will declare with implicit type and then assign. The type will be that of the right hand side.