wasmtest

command module
v0.0.0-...-279bf1a Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

A program for testing wasmexport. This is the driver/host program, which provides the imports and calls the exports. testprog is the source of the Wasm module, which can be compiled to either an executable or a library.

To build it as executable: GOARCH=wasm GOOS=wasip1 go build -o /tmp/x.wasm ./testprog

To build it as a library: GOARCH=wasm GOOS=wasip1 go build -buildmode=c-shared -o /tmp/x.wasm ./testprog

Then run the driver (which works for both modes): go run w.go /tmp/x.wasm

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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