Visualize the call graph of a Go program
open sourceMITself-hostablefree
go-callvis is a command-line tool that draws the call graph of a Go program, to help you understand a large codebase or someone else's code. It analyses the program (static, CHA, RTA or VTA call graph algorithms), then serves an interactive viewer on a local web server where you click a package to focus on it, or writes a single SVG, PNG or other image. You can group functions by package and methods by their receiver type, limit the graph to import path prefixes, ignore the standard library, include tests and build tags, and leave out kinds of calls. Output is in Graphviz dot format. It installs with go install and is MIT licensed.
Problems it solves
- visualize the call graph of my Go program
- understand an unfamiliar Go codebase by seeing which functions call which
- see the dependencies between packages and types in a large Go project
- generate an SVG diagram of function calls in a Go package
Features
- interactive viewer on a local web server: click a package to focus it
- static SVG, PNG, JPG and other image output
- group functions by package and methods by receiver type
- filter by import path prefixes, ignore or include packages, skip the standard library
- static, CHA, RTA and VTA call graph algorithms
- include tests and build tags
- render cache
Limitations
- Rendering static output with the -graphviz flag needs Graphviz installed.1
Capabilities
| Has a command line tool | plan not known |
|---|
