Help us shape the future of Go! Take the 2026 Go Developer Survey

constants

package
v0.56.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ID = "constants"

Variables

View Source
var ConstDirective = compiler.Directive{
	Name:    "const",
	Example: `@const DLQ_SUBJECT = "orders.dlq"`,
	Handler: handleConst,
}
View Source
var ConstLoadDirective = compiler.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)

func Bundle

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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