View code coverage in HTML format
suggest changeRun go test as usual, with the -coverprofile flag. Then use go tool cover to view the results as HTML.
go test -coverprofile=c.out
go tool cover -html=c.out
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents