wasm

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package wasm holds build-time JS and HTML assets for the `lg -w` WASM bundler. AssembleHTML returns a single self-contained HTML page given the Go runtime support source and the gzipped-base64 program WASM.

lg-host.js carries two markers (__WASM_EXEC_JS__ and __WASM_GZ_B64__) the assembler substitutes with JSON-encoded JS strings. host.html carries a single marker (__LG_HOST_JS_BODY_PLACEHOLDER__) where the populated host JS is inlined.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssembleHTML

func AssembleHTML(wasmExecJS, wasmGzB64 string) string

AssembleHTML returns the full self-contained HTML page produced by `lg -w`. Pure function: same inputs produce same output. Tested via a golden file in testdata/.

Types

This section is empty.

Jump to

Keyboard shortcuts

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