Visualize golang project dependencies.
First install graphviz.
eg. for macos, run
brew instal graphviz
then,
go install github.com/liguangsheng/govisual/...
Usage of govisual:
-all
include all subdirectory
-host-as-org
include all subdirectory
-hostasorg string
include organization packages
-module string
custom module name
-org
include all subdirectory
-sys
include go sdk packages
-templates value
custom template files
-third
include third party packages
govisual <path-to-your-go-project>
generate png file with graphviz
govisual <path> | dot -Tpng -o /tmp/graph.png
$ govisual -host-as-org -org | dot -Tpng -o grpc-go.png
$ govisual table/tables | dot -Tpng -o tidb-table-tables.png