An open API service indexing awesome lists of open source software.

https://github.com/fanweixiao/yomo-wasi-sfn-demo


https://github.com/fanweixiao/yomo-wasi-sfn-demo

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# yomo-wasi-sfn-demo

This demo shows:

- Implement a [YoMo](https://github.com/yomorun/yomo) Stream Serverless Function in Go.
- Compiled to WebAssembly by [tinygo](https://tinygo.org/docs/guides/webassembly/) with `--target=wasi`.
- parse JSON while [tinygo's limited support for reflection](https://wazero.io/languages/tinygo/#unsupported-standard-libraries).

```bash
# Install YoMo
$ curl -fsSL https://get.yomo.run | sh

# Build
$ yomo build --target wasm app.go

# Test Run
$ yomo dev sfn.wasm
```