{"id":13615687,"url":"https://github.com/bradleyjkemp/memviz","last_synced_at":"2025-05-16T00:07:41.214Z","repository":{"id":43242917,"uuid":"111148787","full_name":"bradleyjkemp/memviz","owner":"bradleyjkemp","description":"Visualize your Go data structures using graphviz","archived":false,"fork":false,"pushed_at":"2021-04-29T20:23:51.000Z","size":90,"stargazers_count":1293,"open_issues_count":18,"forks_count":50,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-04-08T11:11:14.402Z","etag":null,"topics":["go","golang","graphviz","visualization"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradleyjkemp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-17T20:43:14.000Z","updated_at":"2025-04-07T18:14:14.000Z","dependencies_parsed_at":"2022-09-11T17:51:26.833Z","dependency_job_id":null,"html_url":"https://github.com/bradleyjkemp/memviz","commit_stats":null,"previous_names":["bradleyjkemp/memmap"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleyjkemp%2Fmemviz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleyjkemp%2Fmemviz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleyjkemp%2Fmemviz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleyjkemp%2Fmemviz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradleyjkemp","download_url":"https://codeload.github.com/bradleyjkemp/memviz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254442854,"owners_count":22071878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","graphviz","visualization"],"created_at":"2024-08-01T20:01:16.660Z","updated_at":"2025-05-16T00:07:36.151Z","avatar_url":"https://github.com/bradleyjkemp.png","language":"Go","funding_links":[],"categories":["开源类库","Go","Open source library","Content","Repositories"],"sub_categories":["开发辅助包","Development Aid Package","Generators and Translators"],"readme":"# memviz [![Build Status](https://travis-ci.org/bradleyjkemp/memviz.svg?branch=master)](https://travis-ci.org/bradleyjkemp/memviz) [![Coverage Status](https://coveralls.io/repos/github/bradleyjkemp/memviz/badge.svg)](https://coveralls.io/github/bradleyjkemp/memviz?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/bradleyjkemp/memviz)](https://goreportcard.com/report/github.com/bradleyjkemp/memviz) [![GoDoc](https://godoc.org/github.com/bradleyjkemp/memviz?status.svg)](https://godoc.org/github.com/bradleyjkemp/memviz)\n\nHow would you rather debug a data structure?\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\"Pretty\" printed\u003c/td\u003e\n    \u003ctd\u003eVisual graph\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n        \u003cpre\u003e\n(*test.fib)(0xc04204a5a0)({\n index: (int) 5,\n prev: (*test.fib)(0xc04204a580)({\n  index: (int) 4,\n  prev: (*test.fib)(0xc04204a560)({\n   index: (int) 3,\n   prev: (*test.fib)(0xc04204a540)({\n    index: (int) 2,\n    prev: (*test.fib)(0xc04204a520)({\n     index: (int) 1,\n     prev: (*test.fib)(0xc04204a500)({\n      index: (int) 0,\n      prev: (*test.fib)(\u003cnil\u003e),\n      prevprev: (*test.fib)(\u003cnil\u003e)\n     }),\n     prevprev: (*test.fib)(\u003cnil\u003e)\n    }),\n    prevprev: (*test.fib)(0xc04204a500)({\n     index: (int) 0,\n     prev: (*test.fib)(\u003cnil\u003e),\n     prevprev: (*test.fib)(\u003cnil\u003e)\n    })\n   }),\n   .\n   .\n   .\u003c/pre\u003e\n    \u003c/td\u003e\n    \u003ctd width=\"60%\"\u003e\u003cimage src=\".github/fib.svg\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Usage\n`memviz` takes a pointer to an arbitrary data structure and generates output that can be used to generate an easy to \nunderstand diagram using [graphviz](https://graphviz.org/about/).\n\nTo generate a diagram, first you will need to install graphviz on your system following the instructions [here](https://graphviz.org/download/).\n\nNext, use ```memviz.Map(out, \u0026data)``` to generate a graphviz [dot file](https://graphviz.org/doc/info/lang.html) and \nthen pipe the output into graphviz.\n\nFor examples of how to use `memviz`, see the code sample in the [example](https://github.com/bradleyjkemp/memviz/example) \nfolder and the tests in [memviz_test.go](https://github.com/bradleyjkemp/memviz/blob/master/memviz_test.go).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradleyjkemp%2Fmemviz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradleyjkemp%2Fmemviz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradleyjkemp%2Fmemviz/lists"}