Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

memviz

> 编程语言
Open source

Visualize your Go data structures using graphviz

1.3K stars0 likes0 views
WebsiteGitHub

About

Visualize your Go data structures using graphviz

memviz

How would you rather debug a data structure?

"Pretty" printed
Visual 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 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.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Gogogolanggraphvizvisualization

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言