This document covers how to generate HTML Code Coverage Reports for Golang Applications.
$ go test -c -covermode=count -coverpkg ./...
$ ./sms.test -test.run "^TestMain$" -test.coverprofile=coverage.cov
$ go test -test.covermode=count -test.coverprofile=unit.out ./...
$ go get github.com/wadey/gocovmerge $ gocovmerge unit.out coverage.cov > all.out
$ go tool cover -html all.out -o coverage.html
$ go tool cover -func all.out