Skip to content
HN On Hacker News ↗

GitHub - peterretief/codemap: One HTML page that maps a Go module: packages, dependencies, files and functions

▲ 43 points • 22 comments • by peter_retief • 1d ago • HN discussion ↗

Pangram verdict · v3.3

We believe that this entire text is AI.

100 %

AI likelihood · overall

AI
0% human-written 100% AI-generated
SEGMENTS · HUMAN 0 of 6
SEGMENTS · AI 6 of 6
WORD COUNT 192
PEAK AI % 100% · §1
Analyzed
Nov 4
backend: pangram/v3.3
Segments scanned
6 windows
avg 32 words each
Distribution
0 / 100%
human / AI fraction
Verdict
AI
Pangram v3.3

Article text · 192 words · 6 segments analyzed

Human AI-generated
§1 AI · 100%

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.

§2 AI · 100%

Tests are left out. Example: yggstore's map, 40 packages and 1,850 functions.

§3 AI · 100%

Use it In your module's folder, with Go 1.24 or later: go run github.com/peterretief/codemap@latest -o code-map.html Then open code-map.html in a browser.

§4 AI · 100%

It's one file with nothing to serve, so it can go on any website.

§5 AI · 100%

-root DIR maps another folder.

§6 AI · 100%

In GitHub Actions - uses: actions/checkout@v4 - uses: peterretief/[email protected] 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. 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.