正在自动登录…
peterretief/ codemap
生成Go模块的交互式HTML地图,展示包、依赖、文件和函数,便于浏览和搜索代码结构。
AI 中文解读 · 根据仓库描述与 README 生成 · 2026/11/5 15:07:29 · 查看原文
- 累计 Stars
- 50
- 当前热度
- 1 天内 · 小火
- 仓库创建时间
选用指南
AI 根据 README 整理 · 2026/11/5 15:07:29
- 使用方式
在模块目录下运行命令生成HTML文件,然后在浏览器中打开。
查看 README 依据
# codemap One HTML page that maps a Go module: every package, what it builds on within the module, and the functions in each of its files. Search it, click a package to see what it uses and what uses it, and, for a module on GitHub, jump to any function's line. Tests are left out. [](https://get.withcare.co.za/code-map/) Open [that example](https://get.withcare.co.za/code-map/) to try it. ## Use it In your module's folder, with Go 1.24 or later: ```sh go run github.com/peterretief/codemap@latest -o code-map.html ```
Then open `code-map.html` in a browser. It's one file with nothing to serve, so it can go on any website. `-root DIR` maps another folder. ## In GitHub Actions ```yaml - uses: actions/checkout@v4 - uses: peterretief/codemap@v0.1.3 with: output: code-map.html - uses: actions/upload-artifact@v4 with: name: code-map path: code-map.html ``` ## How it reads the map - Each row builds only on the rows below it, so the foundations are at the bottom and your commands at the top. - Wider boxes have more functions, and colours are top-level folders.
- 部署要求
需要Go 1.24或更高版本。
查看 README 依据
# codemap One HTML page that maps a Go module: every package, what it builds on within the module, and the functions in each of its files. Search it, click a package to see what it uses and what uses it, and, for a module on GitHub, jump to any function's line. Tests are left out. [](https://get.withcare.co.za/code-map/) Open [that example](https://get.withcare.co.za/code-map/) to try it. ## Use it In your module's folder, with Go 1.24 or later: ```sh go run github.com/peterretief/codemap@latest -o code-map.html ```
- 已知限制
测试被排除,internal目录和vendor等被忽略。
查看 README 依据
# codemap One HTML page that maps a Go module: every package, what it builds on within the module, and the functions in each of its files. Search it, click a package to see what it uses and what uses it, and, for a module on GitHub, jump to any function's line. Tests are left out. [](https://get.withcare.co.za/code-map/) Open [that example](https://get.withcare.co.za/code-map/) to try it. ## Use it In your module's folder, with Go 1.24 or later: ```sh go run github.com/peterretief/codemap@latest -o code-map.html ```
- Lines show direct links; ones already implied by others appear when you pick a package. - `internal/` is left off names. `vendor`, `testdata` and folders with their own `go.mod` are left out. - The page loads its fonts from Google Fonts, and falls back to system fonts without them. ## Licence MIT
README
正在加载 README…
收录信息
- 仓库创建时间
- 2026/11/4 22:57:39
- 首次达标收录
- 2026/11/5 15:02:22
- 统计更新时间
- 2026/11/5 15:36:52
按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。
模型评估
值得看加权总分 3.8 / 5
由 Jev 模型根据仓库描述与 README 评估,2026/11/5 15:02:22 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。
仓库信息
- 最近推送
- 2026/11/5 02:20:51
- 许可证标识
- MIT
- Fork 数
- 0
- 当前状态
- 未归档
收录记录
按创建时长与累计 Stars 首次收录:小火
首次发现项目