preprocessor

package
v0.3.4-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Preprocessor

type Preprocessor struct {
	Definitions map[string]string
	// contains filtered or unexported fields
}

Struct to store the state of the preprocessor

func New

func New(templateFS embed.FS) *Preprocessor

func (*Preprocessor) Parse

func (p *Preprocessor) Parse(sourceCode string) (string, error)

Runs the pre-processor on the given source code

Jump to

Keyboard shortcuts

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