Visualize go mod graph with Neo4j

Published: 2021-04-03T18:00:00.000Z

Here's a simple utility to visualize the dependency graph of a Go module using Neo4j (or any database that supports cypher).

Running the utility is simple:

go get github.com/halbgut/godep2cypher
cd /some/go/project
go mod graph | godep2cypher | cypher-shell

Here's the code.