Skip to content

Instantly share code, notes, and snippets.

@jacqui
Created May 8, 2014 18:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacqui/84f1bb909aa78274144f to your computer and use it in GitHub Desktop.
Save jacqui/84f1bb909aa78274144f to your computer and use it in GitHub Desktop.
my notes from @jprbnsn and @brnstz's GopherCon recap

GopherCon Recap

by @jprobinson and @brnstz

Talk Highlights

Best Practices

My highlights below, hopefully accurate.

Formatting

Use the stdlib packages

  • flag
  • log
  • testing
  • how to run integration tests separately: // +build integration || go test -tags=integration more info
  • go get -d will download package source code but not go install it

Compiling

  • how you handle external dependencies depends on... how important your project is
  • vendor dir name: depends, are you building a library or a binary? more info
  • use go build in dev, make in production (there was some discussion on this that I missed)

Code Coverage

  • gocover-cobertura for integration with CI servers like jenkins; github page has amusing disclaimer...

History of Go

Rob Pike: Hello Gophers! includes a history of "hello world"

They started with C. Other languages influenced Go too.

Russ Cox: From C to Go

Using C in Go

Basically, you import "C". More info at C? Go? Cgo! on the golang blog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment