Documentation
¶
Overview ¶
Package wasmguest calls into one instance of a single-purpose WebAssembly engine the way filex's engines are driven (internal/thumb/svgwasm, the SVG rasteriser; internal/templates/sandbox, the template engine): put the input into the guest's memory, call its exports, read the answer back.
The first error sticks and every call after it is a no-op, so a render reads as a straight line and is checked once, at the end.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Guest ¶
Guest is one instance being called. Err is the first thing that failed.
func (*Guest) Call ¶
Call calls the export name with args and returns its first result (0 when it has none, or after an error).
Click to show internal directories.
Click to hide internal directories.