-
-
Notifications
You must be signed in to change notification settings - Fork 436
Closed
Labels
Description
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
callsmain$1
. However the call between those two funcs insideerrgroup
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
.
Thanks @DmitriyMV for reporting this issue!