goreporter
goreporter copied to clipboard
How to run under gomod
the project layout is blow:
-myProject
-libA
-cmd
-server
-main.go
-client
-main.go
-libB
-go.mod
-go.sum
When I run cd myProject && goreporter -p .
, it warns me that:
package myProject/cmd/server is not in GOROOT
package myProject/cmd/client is not in GOROOT
package myProject/libA is not in GOROOT
package myProject/libB is not in GOROOT
How could I fix this?