builder

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package builder provides shared compilation pipeline components for the TypeGo CLI. It consolidates template generation, import scanning, and virtual module creation used by both the `build` and `run` commands.

Index

Constants

View Source
const ShimTemplate = `` /* 1420-byte string literal not displayed */

ShimTemplate is the Go source template used to generate standalone TypeGo binaries. It wraps the bundled JavaScript in a Goja runtime with all bridge modules enabled.

Template placeholders:

  • %[1]s: Additional import statements for hyper-linked Go packages
  • %[2]s: The bundled JavaScript code (quoted string)
  • %[3]s: Hyper-linker binding code (generated shims)
  • %[4]d: Memory limit in bytes

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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