Go R1 Day 41
100DaysOfCode golang microblog
progress
- Enabled Go code coverage for tests in VSCode
go install github.com/jpoles1/gopherbadger@masterto install tooling for generating code coverage badge for readme.- Set
![gopherbadger-tag-do-not-edit]()in the readme, and then this gets replaced with a code coverage percentage badge. - Generate the required code coverage reports using:
go test -coverprofile cover.outfollowed bygo tool cover -html=cover.out -o coverage.htmlfor a visual report.