Back to godoc.org
golang.org/x/exp / cmd / modgraphviz

Command modgraphviz

v0.0.0-...-18d7dbd
Latest Go to latest

The latest major version is .

Published: 5 days ago | License: BSD-3-Clause | Module: golang.org/x/exp

Overview

Modgraphviz converts “go mod graph” output into Graphviz's DOT language, for use with Graphviz visualization and analysis tools like dot, dotty, and sccmap.

Usage:

go mod graph | modgraphviz > graph.dot
go mod graph | modgraphviz | dot -Tpng -o graph.png

Modgraphviz takes no options or arguments; it reads a graph in the format generated by “go mod graph” on standard input and writes DOT language on standard output.

For each module, the node representing the greatest version (i.e., the version chosen by Go's minimal version selection algorithm) is colored green. Other nodes, which aren't in the final build list, are colored grey.

See http://www.graphviz.org/doc/info/lang.html for details of the DOT language and http://www.graphviz.org/about/ for Graphviz itself.

See also golang.org/x/tools/cmd/digraph for general queries and analysis of “go mod graph” output.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier