print test coverage
go test -cover
store results (implies -cover)
go test -coverprofile=coverage.out
print them again
go tool cover -func=coverage.out
generate a fancy html coverage map
go tool cover -html=coverage.out
You can also view coverage inside vim with the vim-go plugin:
:GoCoverage
and then :GoCoverageClear