Prior to the SonarQube analysis, execute your unit tests and generate the coverage report using such command:
go test -coverprofile=coverage.out
Import this report while running the SonarQube analysis by providing the paths of the coverage report through the following properties. The paths may be absolute or relative to the project base directory.
Property Scope Description
Project-wide comma-separated list of paths to coverage report files. Wildcards Ant patterns relative to project root are supported since SonarGo 1.1.