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

include

package
v0.37.0 Latest Latest
Warning

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

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

Documentation

Overview

Package include provides the `@include "file.nflow" [AS namespace]` source-module import. The compiler preprocesses each imported file in its own declaration scope and resolver. Its exported capabilities and symbols are qualified by the explicit alias or, by default, the filename stem; child declarations are never merged into the parent's scope. `@require` remains an independent bundle directive.

For example, `@include ./shared/payments.nflow AS billing` exposes a child pipeline as `billing.pipeline.charge`.

Index

Constants

View Source
const ID = "include"

Variables

View Source
var Directive = compiler.Directive{
	Name:    "include",
	Example: `@include "shared/payments.nflow" AS billing`,
	Handler: handleDirective,
}

Directive imports a parsed source module. The compiler owns source loading, cycle detection, declaration scopes and namespace resolution.

Functions

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