Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need generic example #55

Open
marcelloh opened this issue Oct 30, 2019 · 6 comments
Open

need generic example #55

marcelloh opened this issue Oct 30, 2019 · 6 comments
Labels

Comments

@marcelloh
Copy link

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?)

@arush-sal
Copy link

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

@ondrajz ondrajz pinned this issue Dec 29, 2019
@marco-m
Copy link

marco-m commented Jan 19, 2020

@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 :-)

@unknwon
Copy link

unknwon commented Feb 21, 2020

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

@den-is
Copy link

den-is commented May 24, 2020

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

@ondrajz
Copy link
Owner

ondrajz commented Aug 5, 2020

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

@joshua0x
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants