Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Visualize your Go data structures using graphviz

License

NotificationsYou must be signed in to change notification settings

bradleyjkemp/memviz

Repository files navigation

How would you rather debug a data structure?

"Pretty" printedVisual graph
(*test.fib)(0xc04204a5a0)({ index: (int) 5, prev: (*test.fib)(0xc04204a580)({  index: (int) 4,  prev: (*test.fib)(0xc04204a560)({   index: (int) 3,   prev: (*test.fib)(0xc04204a540)({    index: (int) 2,    prev: (*test.fib)(0xc04204a520)({     index: (int) 1,     prev: (*test.fib)(0xc04204a500)({      index: (int) 0,      prev: (*test.fib)(),      prevprev: (*test.fib)()     }),     prevprev: (*test.fib)()    }),    prevprev: (*test.fib)(0xc04204a500)({     index: (int) 0,     prev: (*test.fib)(),     prevprev: (*test.fib)()    })   }),   .   .   .

Usage

memviz takes a pointer to an arbitrary data structure and generates output that can be used to generate an easy tounderstand diagram usinggraphviz.

To generate a diagram, first you will need to install graphviz on your system following the instructionshere.

Next, usememviz.Map(out, &data) to generate a graphvizdot file andthen pipe the output into graphviz.

For examples of how to usememviz, see the code sample in theexamplefolder and the tests inmemviz_test.go.

About

Visualize your Go data structures using graphviz

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp