https://github.com/pinebit/go-wasm-runner
A simple Go server that executes arbitrary wasm programs
https://github.com/pinebit/go-wasm-runner
Last synced: about 1 year ago
JSON representation
A simple Go server that executes arbitrary wasm programs
- Host: GitHub
- URL: https://github.com/pinebit/go-wasm-runner
- Owner: pinebit
- License: mit
- Created: 2023-05-18T13:06:20.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-18T14:39:38.000Z (almost 3 years ago)
- Last Synced: 2025-01-03T06:28:57.301Z (about 1 year ago)
- Language: Go
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-wasm-runner
A simple Go server that executes a simple wasm program upon http request.
In this example, the wasm program is built with *tinygo* (see testdata subfolder).
# Running
`go run .`
Default server port is 8080, you can change it by passing `-port` parameter.
# Testing
Once started, go browser and type `http://localhost:8080/run?a=1&b=2`. Here, parameters `a` and `b` are numbers that needs to be added. The expected output: `result: 3`.