Documentation
¶
Overview ¶
Package frontmatter reads and parses YAML frontmatter from spec nodes, test nodes, and external dependency files.
spec: ROOT/tech_design/internal/frontmatter@v27
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Frontmatter ¶
Frontmatter holds the parsed frontmatter fields. All fields are optional at the parsing level.
func ParseFrontmatter ¶
func ParseFrontmatter(filePath string) (*Frontmatter, error)
ParseFrontmatter reads the file at filePath, extracts the YAML frontmatter block (between the first and second "---" lines), parses it, and returns the result. It reads line by line and stops as soon as the closing "---" is found — the file body is never read.
Click to show internal directories.
Click to hide internal directories.