gen-funcs-sigs

command
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

gen-funcs-sigs reads the canonical per-function markdown docs under `docs/funcs/*.md` and emits `rts/signatures_gen.go` - the sorted list of public builtin signature strings the runtime loads at init.

Pre-codegen, signatures lived twice: once in `rts/signatures.go` as Go literals, and once in `docs/funcs/<name>.md` under `## Signature`. A drift gate test kept them in sync. With this tool, the markdown doc is the single source of truth and `signatures.go` only carries the init logic + a tiny hand-maintained list of internal `_rad_*` signatures that have no public docs.

Pipeline:

docs/funcs/*.md   ── source of truth
      │
      ▼ gen-funcs-sigs  (this tool)
rts/signatures_gen.go  ── generated, checked into git
      │
      ▼ rts.init  (at runtime)
parses each signature string into a Typing

Usage:

go run ./tools/gen-funcs-sigs

Defaults assume invocation from the repo root. Pass `-source` and `-out` to override.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL