gonlineviz
gonlineviz is a dependency graph visualization tool. It's basically goviz but available on a HTTP endpoint.
installation
go get github.com/vrischmann/gonlineviz
usage
gonlineviz [-listen <listen address>] [-goroot <goroot>]
The default values are:
LISTEN_ADDRESS
environment variable, or localhost:3245
GOROOT
environment variable, or /usr/local/go
The GOPATH
environment variable needs to be set.
Once running, simply points your browser to http://localhost:3245/<package path>
where package path
is an import path in the form github.com/vrischmann/envconfig
or golang.org/x/tools/vcs
parameters
There are two parameters:
leaf
, true
or false
. If true, draws the leafs too.
reversed
, a package path. If set, graph starting from this package.
depth
, an int. If set, limit the graph depth.
live demo
There's a live demo here.
Some basic examples:
Some examples using leaf=true
Some examples using reversed
- focusing on
golang.org/x/net/context
in gocql
NOTE: the live demo is super slow to compile, and rate limited. Don't break it.
thanks
Thanks to goviz for the graph generation code.
license
MIT licensed, see the LICENSE file.