Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/second-state/WasmEdge-go
The GO language SDK and API for WasmEdge
https://github.com/second-state/WasmEdge-go
go golang tensorflow wasmedge webassembly
Last synced: about 2 months ago
JSON representation
The GO language SDK and API for WasmEdge
- Host: GitHub
- URL: https://github.com/second-state/WasmEdge-go
- Owner: second-state
- License: apache-2.0
- Created: 2021-03-17T10:05:37.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-09-06T06:47:38.000Z (over 1 year ago)
- Last Synced: 2024-01-25T03:14:12.149Z (11 months ago)
- Topics: go, golang, tensorflow, wasmedge, webassembly
- Language: Go
- Homepage: https://www.secondstate.io/articles/extend-golang-app-with-webassembly-rust/
- Size: 157 KB
- Stars: 104
- Watchers: 6
- Forks: 16
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# WasmEdge for Go Package
The [WasmEdge](https://github.com/WasmEdge/WasmEdge) is a high performance WebAssembly runtime optimized for server side applications. This project provides a [golang](https://golang.org/) package for accessing to WasmEdge.
* For a complete tutorial, please read the article [Extend Your Golang App with Embedded WebAssembly Functions in WasmEdge](https://www.secondstate.io/articles/extend-golang-app-with-webassembly-rust/), which demonstrates how to embed a Wasm function and how to embed a full Wasm program from the Golang app.
* WasmEdge in real-time data strems: [AI Inference for Real-time Data Streams with WasmEdge and YoMo](https://www.secondstate.io/articles/yomo-wasmedge-real-time-data-streams/)
* For more examples, please go to the [WasmEdge-go-examples repo](https://github.com/second-state/WasmEdge-go-examples). Contributing your own example is much appreciated.## Getting Started
The `WasmEdge-go` requires `golang` version >= `1.16`. Please check your `golang` version before installation.
Developers can [download golang here](https://golang.org/dl/).```bash
$ go version
go version go1.16.5 linux/amd64
```Developers must [install the WasmEdge shared library](https://wasmedge.org/docs/start/install) with the same `WasmEdge-go` release version.
```bash
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:
```bash
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](https://wasmedge.org/docs/start/install/#install-wasmedge-plug-ins-and-dependencies) to check that you've installed the plug-ins with their dependencies.
For examples, please refer to the [example repository](https://github.com/second-state/WasmEdge-go-examples/).
## WasmEdge-go Documentation
Please refer to the [API Documentation](https://wasmedge.org/docs/embed/go/reference/latest) for details.