{"id":16610196,"url":"https://github.com/tmr232/go-overview-graph","last_synced_at":"2025-10-13T23:04:08.204Z","repository":{"id":147718322,"uuid":"565181694","full_name":"tmr232/go-overview-graph","owner":"tmr232","description":"Generate IDA Pro-style graph overviews for Go functions","archived":false,"fork":false,"pushed_at":"2022-12-16T17:35:06.000Z","size":3155,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-14T13:13:44.756Z","etag":null,"topics":["code-visualization","golang"],"latest_commit_sha":null,"homepage":"https://tmr232.github.io/go-overview-graph/","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/tmr232.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-12T15:41:17.000Z","updated_at":"2024-04-22T13:40:41.000Z","dependencies_parsed_at":"2023-05-27T06:00:09.355Z","dependency_job_id":null,"html_url":"https://github.com/tmr232/go-overview-graph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmr232%2Fgo-overview-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmr232%2Fgo-overview-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmr232%2Fgo-overview-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmr232%2Fgo-overview-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmr232","download_url":"https://codeload.github.com/tmr232/go-overview-graph/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238856088,"owners_count":19542142,"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":["code-visualization","golang"],"created_at":"2024-10-12T01:29:32.273Z","updated_at":"2025-10-13T23:04:03.166Z","avatar_url":"https://github.com/tmr232.png","language":"Go","readme":"# go-overview-graph\n\nA tool for displaying graph overviews of Go functions.\n\nThis is very early work-in-progress!!!\n\n## Example\n\n```go\n// File: demo/demo.go\nfunc Demo(flag bool, n int) {\n\tif flag {\n\t\tfmt.Println(\"Hello, World!\")\n\t}\n\tfmt.Println(\"Oh no!\")\n\n\tfor _, x := range \"Hello, World!\" {\n\t\tfmt.Println(x)\n\t}\n\n\tif flag {\n\t\tfmt.Println(\"A\")\n\t} else if n == 3 {\n\t\tfmt.Println(\"B\")\n\t} else if n == 2 {\n\t\tfmt.Println(\"C\")\n\t} else {\n\t\tfmt.Println(\"D\")\n\t}\n\n\tswitch n {\n\tcase 1:\n\t\treturn\n\tcase 2:\n\t\treturn\n\tcase 3:\n\t\treturn\n\t}\n\tfmt.Println(\"Yo\")\n}\n```\n\nRun the tool:\n\n```bash\ngo run . function --pkg ./demo --function Demo | dot -Tpng -o\"media/demo.png\"\n```\n\nAnd we get:\n\n![Graph showing the control flow of the Demo function](media/demo.png)\n\n## Side By Side \n\nRun:\n\n```bash\nmkdir sxs\ngo run . sxs --pkg ./demo --out ./sxs\n```\n\nAnd we get:\n\n![Side by side view of the demo code](media/sxs-demo.png)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmr232%2Fgo-overview-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmr232%2Fgo-overview-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmr232%2Fgo-overview-graph/lists"}