gograph icon indicating copy to clipboard operation
gograph copied to clipboard

Visualizing Go programs

GoGraph

GoGraph builds graphs out of Go source code.

GoGraph currently only works with structs.

Install

go get -u github.com/tbpg/gograph

Examples

Analyze a type from command line:

gograph -type gonum.org/v1/gonum/graph/simple.DirectedGraph | dot -Tpng -o out.png

Run a server:

gograph -http :8080

sample graph

Questions

File a bug or reach out on Twitter.

Disclaimer

This is not an official Google product.