With go list -m -json we can guess what part is the name of the module and what's the package:
➜ go list -m -json
{
"Path": "github.com/shackra/keisy-ian",
"Main": true,
"Dir": "/home/jorge/code/crypto/robot-trader/keisy-ian",
"GoMod": "/home/jorge/code/crypto/robot-trader/keisy-ian/go.mod",
"GoVersion": "1.21.0"
}
Among many other values.
The format is as follows (taken from a tool that converts this format to lcov):
// Format being parsed is:
//
// name.go:line.column,line.column numberOfStatements count
//
// e.g.
//
// github.com/jandelgado/golang-ci-template/main.go:6.14,8.2 1 1
I wish for golang support of the code coverage format, it looks like this:
With
go list -m -json
we can guess what part is the name of the module and what's the package:Among many other values.
The format is as follows (taken from a tool that converts this format to lcov):