by @jprobinson and @brnstz
- Rob Pike's Hello Gophers! includes a history of "hello world"
- Russ Cox: From C to Go how they made go
- Best Practices For Production Environments pdf, will download
- 2014-talks github repo
- Videos
My highlights below, hopefully accurate.
- flag
- log
- testing
- note: you can assert equality using reflect.DeepEqual - I hadn't thought of that.
- how to run integration tests separately: // +build integration || go test -tags=integration more info
go get -d
will download package source code but notgo install
it
- 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)
- gocover-cobertura for integration with CI servers like jenkins; github page has amusing disclaimer...
Rob Pike: Hello Gophers! includes a history of "hello world"
They started with C. Other languages influenced Go too.
Basically, you import "C"
. More info at C? Go? Cgo! on the golang blog.