ondrajz / go-callvis

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

Running from source directory? #95

Open larsks opened 3 years ago

larsks commented 3 years ago

I wanted to run go-callvis on the github cli. I tried:

git clone https://github.com/cli/cli ghcli
cd ghcli
go-callvis github.com/cli/cli

But that results in:

-: no required module provides package github.com/cli/cli; to add it:
        go get github.com/cli/cli
2021/06/24 14:38:35 packages contain errors

I wasn't able to find any invocation that would let me call go-callvis from an existing source tree. The documentation in the README didn't really provide sufficient examples to help me identify whether or not I'm just attempting to misuse the tool (in fact, the README only provides example output; it doesn't provide any examples of actually using go-callvis).

timohuovinen commented 2 years ago

Examples: https://ofabry.github.io/go-callvis/examples/

huahuayu commented 2 years ago

same issue, does the only way to use is put the source code in $GOPATH? How about go module support in any dir?