wasm

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImports

func BuildImports(
	ctx context.Context,
	wasmRuntime wazero.Runtime,
	embindEngine embind.Engine,
	compiledModule wazero.CompiledModule,
) error

func CompileBergamot

func CompileBergamot(
	ctx context.Context,
	wasmRuntime wazero.Runtime,
	embindEng embind.Engine,
	cfg CompileConfig,
) (api.Module, error)

Types

type CompileConfig

type CompileConfig struct {
	// Stderr and Stdout enable redirection of any logs. If left nil they point at os.Stderr and os.Stdout. Turn off by setting them to io.Discard
	Stderr, Stdout io.Writer
}

Jump to

Keyboard shortcuts

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