Source Structureregistry-listed

Package Clause

Package Clause owns the first line of a Go source file.

Registry listing does not certify support for every language or host environment. Check the selected target’s diagnostics and generated output.

Overview

Kind id
source_package
Semantics
source.package
Source
CORE_NODE_REGISTRY

When to use

Place one package clause at the beginning of the file member chain and set its package name.

Graph to code example

A clause named sample followed by Function Define generates package sample and the declared functions.

Watch for

The clause is visible source. Missing, duplicate or misplaced clauses block imported Go generation. Package imports, build constraints and project dependency context require separate mappings.

Ports

IdDirTypeLabel
exec_ininexecution-
exec_outoutexecution-

Options

IdTypeDefaultNotes
packageNamestringmain-
goWordBitsenum64Explicit Go integer target: 32-bit (386) or 64-bit (amd64). Retained during re-import. · enum: 32, 64