wasm_plugin

command
v0.4.21 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

examples/wasm_plugin/main.go Comprehensive test for WebAssembly plugins in Xxlang.

WASM plugins work on all platforms including Windows, without CGO.

Build the plugin:

cd plugin && ./build.sh fib.ts    # AssemblyScript (smallest)
cd plugin && ./build.sh fib.rs    # Rust
cd plugin && ./build.sh fib.zig   # Zig
cd plugin && ./build.sh fib.c     # C

Run this example:

go run main.go

Directories

Path Synopsis
examples/wasm_plugin/plugin/fib.go A WebAssembly plugin for Fibonacci calculation.
examples/wasm_plugin/plugin/fib.go A WebAssembly plugin for Fibonacci calculation.
test_loadplugin_main.go - Test loadPlugin function from Xxlang
test_loadplugin_main.go - Test loadPlugin function from Xxlang

Jump to

Keyboard shortcuts

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