The WasmEdge is a high performance WebAssembly runtime optimized for server side applications. The WasmEdge-Go provides a golang package for accessing to WasmEdge.
Before trying the examples, the WasmEdge installation is required.
The WasmEdge extensions are built for Linux
platforms. For the Windows
and MacOS
users, there is only the WasmEdge without extensions can be installed.
This repository contains examples of WasmEdge-Go.
- Basic examples: The basic API examples for WasmEdge-Go.
- go_PrintFibonacci: Various WasmEdge-Go API examples in Golang.
- go_ReadFile: Invoke WASM with WASI in Golang.
- go_WasmAOT: WASM AOT compiler in Golang.
- go_ExternRef: External reference and host functions in Golang examples.
- go_ThreadsMandelbrot: WASM threads proposal example to draw the mandelbrot image.
- WasmEdge-Bindgen examples: The tutorials for wasmedge-bindgen from Rust sources and executions.
- go_BindgenFuncs: Example for invokation the functions from Rust source with wasmedge-bindgen.
- go_BindgenKmeans: Example for kmeans calculation with wasmedge-bindgen.
- go_BindgenWasi: Invoke WASM with WASI and wasmedge-bindgen.
- go_TfliteFood: Basic TensorFlow-Lite food example with wasmedge-bindgen.
- Mobilenet examples
- go_Mobilenet: Basic mobilenet example with wasmedge-bindgen.
- go_MobilenetBirds, go_MobilenetFood, go_MobilenetInsects, and go_MobilenetPlants: MobileNet examples for every categories.
- Tensorflow extension examples
- go_mtcnn: WasmEdge-tensorflow extension in WasmEdge-Go example.
- Memory examples
- go_AccessMemory: Example showing how to pass and return memory pointer in WASM.
- go_AccessMemoryTinyGo: Example showing how to pass and return memory pointer in WASM which is compiled from TinyGo.
- go_MemoryGreet: Example showing how to pass and return string using pointer in WASM.
- go_MemoryGreetTinyGo: Example showing how to pass and return string using pointer in WASM which is compiled from TinyGo.