gen

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package gen turns the canonical ops catalog into the artefacts every surface reads. It is a library rather than a lump of code inside the generator binary so that a test can regenerate in memory and compare against what is committed: running `go generate` is the one manual step left in adding an op, and a stale generated file is the one drift the structure cannot rule out by itself.

Nothing here emits behaviour. The Go files bind op names to hand-written methods; a new op in the catalog produces a binding that does not compile until its handler exists.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Path    string
	Content []byte
}

File is one generated artefact: a slash-separated path relative to the repo root, and its full content.

func Files

func Files() ([]File, error)

Files renders every artefact from the catalog. It returns an error only for a catalog ops.Validate would already reject, so callers that validate first can treat an error here as a bug in this package.

Jump to

Keyboard shortcuts

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