ondrajz / go-callvis

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

Getting "no main packages" error #158

Open RedCollarPanda opened 1 year ago

RedCollarPanda commented 1 year ago

I have two projects with main package, etc

I do

go-callvis gitlab.my.service/server-side/project

or

go-callvis gitlab.my.service/server-side/another

One of projects uses cobra package and another one does not.

I get error

no main packages

What can I do to fix it?

RedCollarPanda commented 1 year ago

My main package was not in a root dir of a project. I should call it like

o-callvis gitlab.my.service/server-side/project/cmd