How to: [⏫](#contents) Make graph of function calls with [callgraph](https://golang.org/x/tools/cmd/callgraph)
Visualize complex or new project quickly or to study project. Requires `main.go` in module. Supports Graphviz output format. Has many options for filtering and formatting. — official Go team

```
callgraph -format graphviz . | dot -Tsvg -o graph.svg
recommend: grep
recommend: grep -v Error since many packages report error
recommend: adding `rankdir=LR;` to graphviz file for denser graph
recommend: you would have to manually fix graphviz file first and last line
```
Requirements
```
go install golang.org/x/tools/cmd/callgraph@latest
```