WasmEdge Go SDK
The WasmEdge-go requires golang version >= 1.16. Please check your golang version before installation. You can .
Meantime, please make sure you have installed the WasmEdge shared library with the same release version.
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -v 0.10.0
If you need the TensorFlow
or Image
extension for WasmEdge-go
, please install the WasmEdge
with extensions:
Noticed that the TensorFlow
and extensions are only for the Linux
platforms.
Install the WasmEdge-go
package and build in your Go project directory:
go get github.com/second-state/WasmEdge-go/wasmedge@v0.10.0
WasmEdge-go
has the following extensions:
TensorFlow
This extension supports the host functions in .
To install the extension, please use the
-e tensorflow
flag in the WasmEdge installer command.For using this extension, the tag
tensorflow
when building is required:
-
This extension supports the host functions in WasmEdge-image.
For using this extension, the tag
image
when building is required:go build -tags image
You can also turn on the multiple extensions when building:
For examples, please refer to the .