gen

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package gen generates the Go vocabulary constants (internal/vocab) from schema/vocabulary.toml and schema/profiles/*.toml. The documents are loaded through the strictspec-generated readers, so generation is impossible from an invalid document — a diagnostic is a hard error.

The output is deterministic: source order of the vocabulary and profile documents is preserved, so the same inputs always produce the same bytes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(repoRoot string) ([]byte, error)

Generate produces the contents of internal/vocab/vocab_gen.go from the schema documents under repoRoot.

Types

This section is empty.

Jump to

Keyboard shortcuts

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