[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108659":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":14,"stars30d":15,"stars90d":12,"forks30d":12,"starsTrendScore":16,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":9,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":12,"starSnapshotCount":12,"syncStatus":16,"lastSyncTime":27,"discoverSource":28},108659,"codemap","peterretief\u002Fcodemap","peterretief","One HTML page that maps a Go module: packages, dependencies, files and functions",null,"JavaScript",93,0,51,7,39,2,47.4,"MIT License",false,"main",true,[],"2026-11-05 11:36:57","2026-11-22 17:36:03","# codemap\n\nOne HTML page that maps a Go module: every package, what it builds on\nwithin the module, and the functions in each of its files. Search it, click\na package to see what it uses and what uses it, and, for a module on\nGitHub, jump to any function's line. Tests are left out.\n\n[![The map of yggstore, 40 packages and 1,850 functions](map.png)](https:\u002F\u002Fget.withcare.co.za\u002Fcode-map\u002F)\n\nOpen [that example](https:\u002F\u002Fget.withcare.co.za\u002Fcode-map\u002F) to try it.\n\n## Use it\n\nIn your module's folder, with Go 1.24 or later:\n\n```sh\ngo run github.com\u002Fpeterretief\u002Fcodemap@latest -o code-map.html\n```\n\nThen open `code-map.html` in a browser. It's one file with nothing to serve,\nso it can go on any website. `-root DIR` maps another folder.\n\nIt's been checked against a plain-text count on cobra, gin, hugo, prometheus\nand kubernetes: packages, files and functions all match. Kubernetes (1,278\npackages, 34,823 functions) takes under 2 seconds and makes a 4.5 MB page.\n\n## In GitHub Actions\n\n```yaml\n- uses: actions\u002Fcheckout@v4\n- uses: peterretief\u002Fcodemap@v0.2.0\n  with:\n    output: code-map.html\n- uses: actions\u002Fupload-artifact@v4\n  with:\n    name: code-map\n    path: code-map.html\n```\n\n## How it reads the map\n\n- Each row builds only on the rows below it, so the foundations are at the\n  bottom and your commands at the top.\n- A long row wraps onto more lines, and the map scrolls, so names stay readable\n  however big the module is.\n- Wider boxes have more functions, and colours are top-level folders.\n- Lines show direct links; ones already implied by others appear when you\n  pick a package.\n- `internal\u002F` is left off names. `vendor`, `testdata` and folders with their\n  own `go.mod` are left out.\n- The page loads its fonts from Google Fonts, and falls back to system fonts\n  without them.\n\n## Other languages\n\n[perl-codemap](https:\u002F\u002Fgithub.com\u002Finterrupt21h\u002Fperl-codemap) does the same for\nPerl.\n\n## Licence\n\nMIT\n","codemap 是一个用于可视化 Go 模块代码结构的静态 HTML 工具，自动生成包含包依赖关系、文件分布及函数列表的交互式代码地图。它基于 Go 1.24+ 的 go list 和 AST 解析，无需运行时服务，输出单个离线 HTML 文件；支持包级双向依赖导航、函数行号跳转（GitHub 集成）、颜色编码目录区分和响应式缩放布局。适用于 Go 项目代码审查、新人导览、架构理解及 CI 中自动化生成文档地图等场景。","2026-11-24 04:34:54","CREATED_QUERY"]