https://github.com/icexin/gowasm
gowasm is a go runtime implemention for WebAssembly generated by go(>=1.11) toolchain.
https://github.com/icexin/gowasm
go wasm webassembly
Last synced: 4 months ago
JSON representation
gowasm is a go runtime implemention for WebAssembly generated by go(>=1.11) toolchain.
- Host: GitHub
- URL: https://github.com/icexin/gowasm
- Owner: icexin
- License: mit
- Created: 2018-11-05T16:04:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-26T07:31:04.000Z (over 6 years ago)
- Last Synced: 2023-08-09T21:50:30.216Z (almost 2 years ago)
- Topics: go, wasm, webassembly
- Language: Go
- Size: 19.5 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gowasm
======Overview
========gowasm is a go runtime implemention for WebAssembly generated by go(>=1.11) toolchain.
It is also an extensible framework, you can freely add packages for the wasm module to access methods in these packages.How to use
=============gowasm is just a runtime implementation, it requires a wasm vm to run the code.
There are currently two vm implementations, [life](https://github.perlin-network/life) and [wagon](https://github.com/go-interpreter/wagon).
The compilation method is as follows
``` bash
$ git clone https://github.com/icexin/gowasm.git
$ cd gowasm
$ GOOS=js GOARCH=wasm go build -o /tmp/hello tests/hello.go
$ export GO111MODULE=on# For life vm
$ cd cmd/life && go build
$ ./life /tmp/hello wasm# For wagon vm
$ cd cmd/wagon && go build
$ ./wagon /tmp/hello wasm
```How to custom package
=====================