modgv

Converts 'go mod graph' output into Graphviz's DOT language

Github星跟蹤圖

modgv

Go Report Card     Go Coverage     Go API Reference     Mentioned in Awesome Go

Converts 'go mod graph' output into GraphViz's DOT language.

  • takes no options or arguments
  • it reads the output generated by “go mod graph” on stdin
  • generates a DOT language and writes to stdout

Usage:

go mod graph, modgv, dot -Tpng -o graph.png

For each module:

  • the node representing the greatest version (i.e., the version chosen by Go's MVS algorithm) is colored green
  • other nodes, which aren't in the final build list, are colored grey

Installation

go get github.com/lucasepe/modgv/modgv

Here 👉 https://graphviz.gitlab.io/download/ how to install GraphViz for your OS.

Sample output (PNG)

go mod graph, modgv, dot -Tpng -o graph.png


go mod graph, modgv, dot -Tps2 -o graph.ps
ps2pdf graph.ps graph.pdf

View generated PDF

主要指標

概覽
名稱與所有者lucasepe/modgv
主編程語言Go
編程語言Go (語言數: 1)
平台
許可證BSD 3-Clause "New" or "Revised" License
所有者活动
創建於2020-09-12 16:23:46
推送於2023-02-23 09:21:20
最后一次提交2023-02-23 09:49:52
發布數5
最新版本名稱v0.2.4 (發布於 )
第一版名稱v0.2.0 (發布於 )
用户参与
星數489
關注者數8
派生數20
提交數13
已啟用問題?
問題數2
打開的問題數0
拉請求數2
打開的拉請求數1
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?