ondrajz / go-callvis

Visualize call graph of a Go program using Graphviz

Home Page:https://ofabry.github.io/go-callvis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not linking caller to callee in a goroutine

fgm opened this issue · comments

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.