Registry / utility / wasmerio-wasmer-go

wasmerio-wasmer-go

JSON →
library1.0.4gogounverified

Package wasmer provides a Go binding to the Wasmer WebAssembly runtime for executing WASM modules.

go get github.com/wasmerio/wasmer-go
INSTALL
IMPORT
SIG · WASMERIO-WASMER-GO
W
wasmerio-wasmer-go
utilitygov1.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

wasmer
github.com/wasmerio/wasmer-go

Compiles a minimal WebAssembly module using the Wasmer runtime.

package main import ( "fmt" "github.com/wasmerio/wasmer-go/wasmer" ) func main() { wasmBytes := []byte{0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00} // minimal WASM module engine := wasmer.NewEngine() store := wasmer.NewStore(engine) module, err := wasmer.NewModule(store, wasmBytes) if err != nil { panic(err) } fmt.Println("Module compiled:", module) }
Debug
Known issues
breakingVersion 1.x uses a deprecated API; newer versions (2.x) have breaking changes.
fix
Consider upgrading to wasmer-go v2 for latest features and support.
affects: >=1.0.0 <2.0.0
Upgrade
Version history
1.0.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
wasmerio-wasmer-go — go get wasmerio-wasmer-go · libregistry