It is possible to obtain coverage information when running a test in Go by using go test -cover ...
, but this coverage doesn't extend to main programs which are invoked by the test. Is there some way of building a Go executable so that it is instrumented for coverage?