How would you rather debug a data structure?
memviz
takes a pointer to an arbitrary data structure and generates output that can be used to generate an easy to
understand diagram using graphviz.
To generate a diagram, first you will need to install graphviz on your system following the instructions here.
Next, use memviz.Map(out, &data)
to generate a graphviz dot file and
then pipe the output into graphviz.
For examples of how to use memviz
, see the code sample in the example
folder and the tests in memviz_test.go.