Makes examples runnable and pares down list (#458)

This deduplicates examples, leaving only the most maintained or targeted
ones. Notably, this makes each runnable, avoiding test dependencies.

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Crypt Keeper
2022-04-13 16:03:50 +08:00
committed by GitHub
parent 4cd4d8a590
commit 958ce19c0b
36 changed files with 306 additions and 532 deletions

10
examples/README.md Normal file
View File

@@ -0,0 +1,10 @@
## wazero examples
The following example projects can help you practice WebAssembly with wazero:
* [basic](basic) - how to use WebAssembly and Go-defined functions.
* [multiple-results](multiple-results) - how to return more than one result from WebAssembly or Go-defined functions.
* [replace-import](replace-import) - how to override a module name hard-coded in a WebAssembly module.
* [wasi](wasi) - how to use I/O in your WebAssembly modules using WASI (WebAssembly System Interface).
Please [open an issue](https://github.com/tetratelabs/wazero/issues/new) if you would like to see another example.