Documentation
¶
Index ¶
- func ArduinoInstantiate(ctx context.Context, rt wazero.Runtime) (api.Closer, error)
- func AsExitError(err error) (exitCode int, ok bool)
- func ChromeInstantiate(ctx context.Context, rt wazero.Runtime) (api.Closer, error)
- func MvpInstantiate(ctx context.Context, rt wazero.Runtime) (api.Closer, error)
- func RunWasm(cfg *config.Config, wasmName string, wasmBytes []byte, wasmArgs ...string) (stdout, stderr []byte, err error)
- func WasiInstantiate(ctx context.Context, rt wazero.Runtime) (api.Closer, error)
- type Module
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArduinoInstantiate ¶
func AsExitError ¶
func ChromeInstantiate ¶
func MvpInstantiate ¶
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
wasm 模块, 可多次执行
func BuildModule ¶
func BuildModule( cfg *config.Config, wasmName string, wasmBytes []byte, wasmArgs ...string, ) (*Module, error)
构建模块(会执行编译)
Click to show internal directories.
Click to hide internal directories.