/WasmEdge-go

The GO language SDK and API for WasmEdge

Primary LanguageGoApache License 2.0Apache-2.0

WasmEdge for Go Package

The WasmEdge is a high performance WebAssembly runtime optimized for server side applications. This project provides a golang package for accessing to WasmEdge.

Getting Started

The WasmEdge-go requires golang version >= 1.16. Please check your golang version before installation. Developers can download golang here.

$ go version
go version go1.16.5 linux/amd64

Developers must install the WasmEdge shared library with the same WasmEdge-go release version.

curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -v 0.13.4

For the developers need the WasmEdge-TensorFlow or WasmEdge-Image plug-ins for WasmEdge-go, please install the WasmEdge with the corresponding plug-ins:

curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- --plugins wasmedge_tensorflow wasmedge_tensorflowlite wasmedge_image -v 0.13.4

Note: Please refer to the install guide for plug-ins to check that you've installed the plug-ins with their dependencies.

For examples, please refer to the example repository.

WasmEdge-go Documentation

Please refer to the API Documentation for details.