Registry / utility / bytecodealliance-wasmtime-go-v5

bytecodealliance-wasmtime-go-v5

JSON →
library5.0.0gogounverified

A WebAssembly runtime for Go powered by Wasmtime, enabling compilation and execution of WebAssembly modules.

go get github.com/bytecodealliance/wasmtime-go/v5
INSTALL
IMPORT
SIG · BYTECODEALLIANCE-W
B
bytecodealliance-wasmtime-go-v5
utilitygov5.0.0
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.

wasmtime
github.com/bytecodealliance/wasmtime-go/v5

Creates a Wasmtime engine, store, and instantiates a minimal WebAssembly module.

package main import ( "fmt" "github.com/bytecodealliance/wasmtime-go/v5" ) func main() { engine := wasmtime.NewEngine() store := wasmtime.NewStore(engine) module, err := wasmtime.NewModule(store.Engine, []byte(`(module)`)) if err != nil { panic(err) } instance, err := wasmtime.NewInstance(store, module, []wasmtime.AsExtern{}) if err != nil { panic(err) } fmt.Println(instance) }
Debug
Known issues
breakingVersion 5.0.0 introduced breaking API changes from v4, including module path change to /v5.
fix
Update import paths from github.com/bytecodealliance/wasmtime-go to github.com/bytecodealliance/wasmtime-go/v5 and adjust API usage per migration guide.
affects: <5.0.0
Upgrade
Version history
5.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
8
OpenAI (training)
2
Amazon
1
Resources
bytecodealliance-wasmtime-go-v5 — go get bytecodealliance-wasmtime-go-v5 · libregistry