Files
wazero/examples/cli
Crypt Keeper 329ccca6b1 Switches from gofmt to gofumpt (#848)
This switches to gofumpt and applies changes, as I've noticed working
in dapr (who uses this) that it finds some things that are annoying,
such as inconsistent block formatting in test tables.

Signed-off-by: Adrian Cole <adrian@tetrate.io>
2022-11-09 05:48:24 +01:00
..

CLI example

This example shows a simple CLI application compiled to WebAssembly and executed with the wazero CLI.

$ go run github.com/tetratelabs/wazero/cmd/wazero run testdata/cli.wasm 3 4

The wazero CLI can run stand-alone Wasm binaries, providing access to any arguments passed after the path. The Wasm binary reads arguments and otherwise operates on the host via WASI functions.