| File | Purpose |
|---|---|
cmd/repomap/main.go |
CLI, flags, render |
internal/mapx/walk.go |
Walk + .gitignore filter |
internal/mapx/gitignore.go |
.gitignore matching (stdlib-only) |
internal/mapx/symbols.go |
regex symbol extraction |
internal/mapx/rank.go |
scoring + name gating |
internal/mapx/tokens.go |
token estimate + budget |
internal/mapx/render.go |
tree / JSON output |
internal/mapx/mapx_test.go |
one self-check test file |
module github.com/AkashPriyadarshii/repomap, go 1.26node_modules, .git, vendor, .env, keep src/app.go.os.WalkDir + gitignore + import-ref counting. Test on
temp fixture tree.--budget, --full, --json, --no-gitignore.go vet ./..., go test ./..., go build, run on repo
root, confirm tokens ≤ budget and JSON parses.gh repo create, push.go vet ./... cleango test ./... passesgo build -o repomap.exe succeeds./repomap.exe on repo ≤ 4000 tokens./repomap.exe --json parses as valid JSON.git, node_modules, vendor excluded