a visualization tool for golang project dependency
a visualization tool for golang project dependency
This tool is for helping source code reading. The dependency of the whole code can be visualized quickly.
go get github.com/hirokidaichi/govizand if not being installed graphviz, install it :
brew install graphvizgoviz -i github.com/hashicorp/serf | dot -Tpng -o hoge.pngUsage:
goviz [OPTIONS]
Application Options:
-i, --input= intput ploject name
-o, --output= output file (STDOUT)
-d, --depth= max plot depth of the dependency tree (128)
-f, --focus= focus on the specific module
-s, --search= top directory of searching
-l, --leaf whether leaf nodes are plotted (false)
-m, --metrics display module metrics (false)
Help Options:
-h, --help Show this help message
exit status 1
goviz -i github.com/mattn/anko | dot -Tpng -o anko.pnggoviz -i github.com/hashicorp/serf | dot -Tpng -o serf.pnggoviz -i github.com/lestrrat/go-xslate | dot -Tpng -o xslate.pnggoviz -i github.com/tsenart/vegeta -l| dot -Tpng -o vegeta.pnggoviz -i github.com/mitchellh/packer --search SELF| dot -Tpng -o packer.pnggoviz -i github.com/dotcloud/docker/docker -s github.com/dotcloud/docker -d 1| dot -Tpng -o docker1.pnggoviz -i github.com/dotcloud/docker/docker -s github.com/dotcloud/docker -d 2| dot -Tpng -o docker2.pnggoviz -i github.com/dotcloud/docker/docker -s github.com/dotcloud/docker -d 3| dot -Tpng -o docker3.pnggoviz -i github.com/dotcloud/docker/runtime/execdriver/execdrivers/ -s github.com/dotcloud/docker| dot -Tpng -o docker-execdrivers.pnggoviz has a function which outputs the metrics (instability) of go project.
goviz -i github.com/dotcloud/docker/docker -m Instability is a value of 0 to 1. It suggests that it is such an unstable module that this value is high. It becomes easy to distinguish whether it is a module nearer to application layer, and whether it is a module near a common library.
…MIT
hirokidaichi [at] gmail.com
No open issues yet, or sync has not completed.