include

package
v0.82.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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; imported @func names are available below that same alias, including composed nested aliases. Child declarations are never merged into the parent's scope. `@require` remains independent.

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