ondrajz / go-callvis

Visualize call graph of a Go program using Graphviz
https://ofabry.github.io/go-callvis
MIT License
5.85k stars 406 forks source link

unknown import path "main": cannot find module providing package main #86

Open danielyaa5 opened 3 years ago

danielyaa5 commented 3 years ago

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
hehuilei commented 2 years ago

the same

ondrajz commented 1 year ago

Please, try changing your current directory to the directory of the main package.