modgraph generates a mermaid flowchart from go mod graph output.
$ modgraph --help
Usage of modgraph:
-prefix string
prefix to filter
-v verbose modego mod graph | modgraph -prefix github.com/smartcontractkit/flowchart
bar --> baz
click bar href "https://github.com/example/bar"
baz
click baz href "https://github.com/example/baz"
baz/v2
click baz/v2 href "https://github.com/example/baz"
foo --> bar
foo --> baz/v2
click foo href "https://github.com/example/foo"
subgraph baz-repo[baz]
baz
baz/v2
end
click baz-repo href "https://github.com/example/baz"
classDef outline stroke-dasharray:6,fill:none;
class baz-repo outline