Skip to content

Instantly share code, notes, and snippets.

@joshkunz
Last active August 27, 2015 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshkunz/ac7ad6d026ef0895a771 to your computer and use it in GitHub Desktop.
Save joshkunz/ac7ad6d026ef0895a771 to your computer and use it in GitHub Desktop.
Newlines in go.
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