| -------- @callgraph callgraph -------- |
| { |
| "mode": "callgraph", |
| "callgraph": [ |
| { |
| "name": "main.main", |
| "pos": "testdata/src/main/callgraph-json.go:24:6", |
| "children": [ |
| 0, |
| 1, |
| 2, |
| 3 |
| ] |
| }, |
| { |
| "name": "main.call", |
| "pos": "testdata/src/main/callgraph-json.go:12:6", |
| "children": [ |
| 5, |
| 6 |
| ] |
| }, |
| { |
| "name": "main.nop", |
| "pos": "testdata/src/main/callgraph-json.go:17:6" |
| }, |
| { |
| "name": "main.call2", |
| "pos": "testdata/src/main/callgraph-json.go:19:6", |
| "children": [ |
| 7 |
| ] |
| }, |
| { |
| "name": "main.init", |
| "pos": "-" |
| }, |
| { |
| "name": "main.A", |
| "pos": "testdata/src/main/callgraph-json.go:7:6" |
| }, |
| { |
| "name": "main.B", |
| "pos": "testdata/src/main/callgraph-json.go:9:6" |
| }, |
| { |
| "name": "main.main$1", |
| "pos": "testdata/src/main/callgraph-json.go:31:8" |
| } |
| ] |
| } |