Last active
August 27, 2015 02:50
-
-
Save joshkunz/ac7ad6d026ef0895a771 to your computer and use it in GitHub Desktop.
Newlines in go.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type thing struct { | |
a, b int | |
c string | |
d uint | |
} | |
// this is valid go (in a function context) | |
v := thing{ a: 0, | |
b: 0, | |
c: "hello", | |
d: 0 } | |
// this is not | |
v := thing{ a: 0 | |
, b: 0 | |
, c: "hello" | |
, d: 0 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment