constants

package
v0.20.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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ID = "constants"

Variables

View Source
var ConstDirective = core.Directive{
	Name:    "const",
	Example: `@const DLQ_SUBJECT = "orders.dlq"`,
	Handler: handleConst,
}
View Source
var ConstLoadDirective = core.Directive{
	Name:    "const.load",
	Example: `@const.load "./config.json" as env :schema=ConfigType`,
	Handler: handleConstLoad,
}

Functions

func Apply

func Apply(lines []string, start int, constants map[string]string)

Apply rewrites `${key}` references in lines[start:] to their values. It delegates to core.ApplyConstants, which is also what the @include merge path calls — one substitution primitive, one behavior.

func Bundle

func Bundle(_ map[string]string) core.Bundle

Types

This section is empty.

Jump to

Keyboard shortcuts

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