MCPcopy Index your code
hub / github.com/PaulXu-cn/go-mod-graph-chart

github.com/PaulXu-cn/go-mod-graph-chart @v0.5.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.5.3 ↗ · + Follow
51 symbols 87 edges 13 files 2 documented · 4% updated 3y ago★ 2263 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

English | 中文

go-mod-graph-chart

一个能将 go mod graph 输出内容可视化的无依赖小工具

安装

$ go get -u github.com/PaulXu-cn/go-mod-graph-chart/gmchart

Go v1.16 或者更高版本使用如下命令安装

$ go install github.com/PaulXu-cn/go-mod-graph-chart/gmchart@latest

使用

$ cd goProject
$ go mod graph | gmchart

执行 go mod graph 命令,输出的文本作为该程序的输入,该程序会起一个http服务,并打开 url 展示图表

show

改动重建

如果你改动了 JS 代码,记得重新构建前端项目,然后重新构建 go 项目

$ npm run build 
$ go install ./gmchart

开源协议

MIT

Core symbols most depended-on inside this repo

InsertTreeRoute
called by 3
gosrc/treeutil.go
fill
called by 2
src/js/tree.js
GetRouteNode
called by 2
gosrc/treeutil.go
CheckTcpConnect
called by 2
gosrc/util.go
graph
called by 1
src/js/graph.js
render_init
called by 1
src/js/graph.js
ticked
called by 1
src/js/graph.js
tree
called by 1
src/js/tree.js

Shape

Function 38
Struct 10
Class 2
Method 1

Languages

Go69%
TypeScript31%

Modules by API surface

gosrc/treeutil.go12 symbols
gmchart/main.go11 symbols
src/js/graph.js8 symbols
src/js/tree.js5 symbols
gosrc/util.go4 symbols
gosrc/graphutil.go4 symbols
plugin/pack-all-in-go-plugin.js3 symbols
gosrc/util_test.go1 symbols
gosrc/treeutil_test.go1 symbols
gosrc/graphutil_test.go1 symbols
godist/static.go1 symbols

For agents

$ claude mcp add go-mod-graph-chart \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page