opdocs

command
v1.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Command opdocs generates the operator reference in docs/operators/.

Each operator's entry is assembled from three things that already exist, so the reference cannot drift from the library:

  • its signature and doc comment, read from the package source;
  • its worked example, read from the Example function in the tests — which `go test` runs and whose output it verifies, so a stale example fails the build rather than misleading a reader;
  • its memory and termination markers, read from the ⚠ notes the doc comments already carry.

Examples are matched to operators by the godoc naming convention (`ExampleSeq_Filter` documents `Seq.Filter`), which means the same functions also appear on pkg.go.dev at no extra cost.

Run `go generate ./...`; CI fails if the output is not current.

Jump to

Keyboard shortcuts

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