ondrajz / go-callvis

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

Not linking caller to callee in a goroutine #173

Open fgm opened 7 months ago

fgm commented 7 months ago

I have an example like this:

func Outer(name string) func() error {
  return func() error { 
    DoSomething(name)
    return nil 
  }
}

func main() {
  go Outer("some name")()
}

In the result, I get the main → Outer link and the Outer$1 → DoSomething link, but no main → Outer$1 link although func main is really invoking that lambda after it receives it from the Outer() call.