Currently only calls to or from focused package are shown. However in cases when the results two contain functions which are both outside focused package and shown because focused package has some calls from/to both. Calls between such functions should be shown since both functions are already in the result anyway.
Example code
package main
import (
"fmt"
"golang.org/x/sync/errgroup"
)
func main() {
var g errgroup.Group
g.Go(func() error {
fmt.Println("Hello world")
return nil
})
g.Wait()
}
Result
You can see that main calls (*Group).Go and (*Group).Go$1 calls main$1. However the call between those two funcs inside errgroup is not shown even though both are in the result already.
By showing such calls the results would make clearer results by showing complete call path from the main to the fmt.Println.
Currently only calls to or from focused package are shown. However in cases when the results two contain functions which are both outside focused package and shown because focused package has some calls from/to both. Calls between such functions should be shown since both functions are already in the result anyway.
Example code
Result
By showing such calls the results would make clearer results by showing complete call path from the
main
to thefmt.Println
.Thanks @DmitriyMV for reporting this issue!