builtin

package
v0.11.10 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 19 Imported by: 1 module, 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 builtin is the standard EE rule catalog. Each rule is a check.Rule value in a rule_*.go file, with its documentation and an Eval. A file may hold a few related rules. The package also holds the declarative-twin Specs, and the parity tests hold them to those Evals. It registers through the same public hook an extension uses, so the core engine (package check) owns no rules. Blank-importing this package installs the catalog as the anonymous built-in source, and a program that omits the import runs with no built-ins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RuleDocImageHandler

func RuleDocImageHandler() http.Handler

RuleDocImageHandler serves the rule docs' embedded explainer images as a read-only static route. The images are the diagrams a docs/<rule>.md references (WS3-025). The route lets the web rules/expectations panels resolve the relative image refs in Rule.Detail (WS9-030). Only image files under docs/images/ are served (.svg and .png). Any other path, including the markdown itself, a directory, or a traversal attempt, is 404. Mount it under a prefix (the handler sees the directory, or a traversal attempt, is 404. Mount it under a prefix (the handler sees the prefix-stripped, relative path, e.g. "images/single-pin-net.svg"). SVG's content-type is set explicitly because Go's mime table resolves .svg only from the host's mime files, which CI/WASM may lack.

Types

This section is empty.

Jump to

Keyboard shortcuts

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