go-callvis
go-callvis copied to clipboard
unknown import path "main": cannot find module providing package main
My project uses go modules. There is only one package main
and Id like to get a callgraph for my project, my directory structure is as such
vendor src > main.go go.mod
So I can manage to figure it out, I tried go-callvis main
and go-callvis .
but I get the following error
unknown import path "main": cannot find module providing package main
the same
Please, try changing your current directory to the directory of the main package.