syntaxexport

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Overview

Package syntaxexport renders a parsed .hurl file in the reference formatter's export formats: syntax-highlighted HTML and the AST as JSON.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTML

func HTML(f *syntax.File, standalone bool) string

HTML renders f as a highlighted `<pre>` block; standalone wraps it in a complete document with the reference stylesheet inline.

func JSON

func JSON(f *syntax.File) string

JSON renders f's AST as the reference formatter's JSON document: one line, keys in a fixed order, no whitespace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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