Vá ferramentas de cobertura
go test -coverprofile cover.out and then
go tool cover -html=cover.out opens cover.out in your default browser
Restu Wahyu Saputra
go test -coverprofile cover.out and then
go tool cover -html=cover.out opens cover.out in your default browser