Has anyone succeeded in generating code coverage for Go unit tests? I can\'t find a tool for that on the web.
Inspired by the help menus and other answers to this question, just run:
f=cover.out; if [ -f $f ]; then rm $f; fi; go test ./... -coverprofile $f && \ go tool cover -html $f && \ rm $f