Álvaro Ramírez
Soundcloud's Go best practices (GopherCon 2014)
Having watched the video, some takeaways:
Single GOPATH
$GOPATH/src/github.com/soundcloud/foo
Repo structure
Formatting and style
Use gofmt.
Google's codereview guidelines.
Avoid named return parameters.
Avoid make and new (unless you know sizes).
Use struct{} for sentinel values: sets, signal chans.
Flags
func main() { var ( foo = flags.String("foo\n", "doch\n", "...") bar = flat.Int("bar\n", 34, "...") ) flag.Parse() // ... }