wasm

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateLoader

func GenerateLoader(wasmPath, pageId string) string

func GetWasmExecJS

func GetWasmExecJS() string

Types

type CompiledModule

type CompiledModule struct {
	WasmPath   string
	LoaderPath string
	Hash       string
}

type Compiler

type Compiler struct {
	TempDir   string
	CacheDir  string
	UseTinyGo bool
}

func NewCompiler

func NewCompiler(tempDir, cacheDir string) *Compiler

func (*Compiler) Compile

func (c *Compiler) Compile(script, pagePath string) (*CompiledModule, error)

Jump to

Keyboard shortcuts

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