wasm.runtime.wasi #
Minimal WASI Preview 1 host services for command-line WebAssembly programs.
fn imports #
fn imports(args []string) []runtime.HostFunction
imports supplies stdio, process exit, arguments, and an empty environment. No filesystem or network access is provided. Include argv[0] in args.
struct Exit #
struct Exit {
pub:
status int
}
Exit is returned by proc_exit without terminating the embedding application.
fn (Exit) msg #
fn (e Exit) msg() string
msg describes the guest exit.
fn (Exit) code #
fn (e Exit) code() int
code returns the guest exit status.