You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# TODO: add docs to this readme on how we generate go CGs
1
+
# Go CallGraph Generation
2
+
3
+
Building callgraphs for Go is generally easy, but there are some caveats.
4
+
If your project depends on building non-Go components then you need to manually build the project before building the callgraph.
5
+
Once the project is built you can generate the callgraph with the following command:
6
+
```shell
7
+
debricked callgraph .
8
+
```
9
+
10
+
And then upload it and scan it using:
11
+
12
+
13
+
```shell
14
+
debricked scan .
15
+
```
16
+
17
+
# Additional Information
18
+
19
+
The callgraph generation depends only on internal functionality in the Go standard library, for more information about this and the implementation see:
As is ususal with callgraph generation, the resulting callgraph cannot be expected to include all possible calls in your program and not all included calls are guaranteed to be reachable/correct.
0 commit comments