go-callvis icon indicating copy to clipboard operation
go-callvis copied to clipboard

need generic example

Open marcelloh opened this issue 4 years ago • 6 comments

I tried a lot of the examples, and bend them to my needs, but none of them generates an image that represents the software. I don't even know if it is needed that the software to be analyzed, should be in a GOPATH?

I haven't got that, so I'm not sure.... I do like this: go-callvis -group pkg,type -nostd ./... But I just got a main that has 2 childs (1 being error and 1 being the initialize)

How can I make a picture that covers my whole project? (I did I misunderstood and isn't the tool capable of doing so?)

marcelloh avatar Oct 30 '19 09:10 marcelloh

Soo.. you must be seeing something like below:

Screenshot from 2019-12-20 00-53-42

and it shows correctly because you only have a single call in main package. Something like:

func main() {
    cmd.Execute()
}

run the go-callvis with -group pkg,type then you will be able to click on packages in the browser to switch focus to a different one. And that's how you do it.

Found the answer in their slack by @Ondrej Fabry

arush-sal avatar Dec 19 '19 19:12 arush-sal

@arush-sal

run the go-callvis with -group pkg,type then you will be able to click on packages in the browser to switch focus to a different one.

thanks! That made the trick for me also :-)

marco-m avatar Jan 19 '20 16:01 marco-m

In case anyone ends up here as I am. the [cmd] in the graph is clickable! Boom, amazing!

unknwon avatar Feb 21 '20 10:02 unknwon

Jesus...... README.md or examples should clearly state that PACKAGE in the light yellow >SQUARES< are clickable, hehe

den-is avatar May 24 '20 06:05 den-is

Jesus...... README.md or examples should clearly state that PACKAGE in the light yellow >SQUARES< are clickable, hehe

Done. https://github.com/ofabry/go-callvis#features

ondrajz avatar Aug 05 '20 02:08 ondrajz

@ofabry can we start analysis from any function instead of main (package main ) ?

joshua0x avatar Sep 10 '21 13:09 joshua0x