ondrajz / go-callvis

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

File position #67

Closed gentzeng closed 3 years ago

gentzeng commented 4 years ago

This feature enhances the edge discription in the resulting dot graph and svg outputs. 1) Hovering over function nodes displays, in which file and at what line the respective function is definded. 2) Hovering over edges from functions to functions displays, at what line inside the calling function the callee is being called.

The enhancement also apply to anonymous functions: If an anonymous function is assigned to a variable, the line position of the call to that variable is displayed as the call to the anonymous function.

ondrajz commented 4 years ago

If you could please rebase this on master, I can merge.

gentzeng commented 4 years ago

It's done. Hope, it helps