github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/examples/README.md (about)

     1  ## wazero examples
     2  
     3  The following example projects can help you practice WebAssembly with wazero:
     4  
     5  * [allocation](allocation) - how to pass strings in and out of WebAssembly
     6    functions defined in Rust or TinyGo.
     7  * [assemblyscript](../imports/assemblyscript/example) - how to configure
     8    special imports needed by AssemblyScript when not using WASI.
     9  * [basic](basic) - how to use both WebAssembly and Go-defined functions.
    10  * [import-go](import-go) - how to define, import and call a Go-defined function
    11    from a WebAssembly-defined function.
    12  * [concurrent-instantiation](concurrent-instantiation) - how to instantiate multiple Wasm instances per Goroutine concurrently.
    13  * [multiple-results](multiple-results) - how to return more than one result
    14    from WebAssembly or Go-defined functions.
    15  * [multiple-runtimes](multiple-runtimes) - how to share compilation caches across multiple runtimes.
    16  * [wasi](../imports/wasi_snapshot_preview1/example) - how to use I/O in your
    17    WebAssembly modules using WASI (WebAssembly System Interface).
    18  
    19  Please [open an issue](https://github.com/bananabytelabs/wazero/issues/new) if you
    20  would like to see another example.