Since version 1.2, Go has supported getting coverage at the package level if cover is provided to the go test command. Go 1.20 introduced coverage-instrumented programs. You can read about that in the blog post on the official Go website Code coverage for Go integration tests. It basically comes down…