anaseto / gruid-js

A gruid Driver using syscall/js and wasm and HTML5 canvas.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrated to https://codeberg.org/anaseto/gruid-js because of new 2FA requirement

gruid-js

pkg.go.dev godocs.io

The gruid-js module provides a gruid Driver for making wasm gruid applications that run in the browser. The module's package is called js.

To build a browser application, you have to build it with the following variables:

GOOS=js GOARCH=wasm go build -o app.wasm /path/to/your/application

Then, you have to serve using an http server a directory containing the app.wasm file along with an index.html file such as the basic example one in files/index.html (the html page containing the canvas of your application), and the $(go env GOROOT)/misc/wasm/wasm_exec.js file of your Go distribution.

About

A gruid Driver using syscall/js and wasm and HTML5 canvas.

License:ISC License


Languages

Language:Go 88.4%Language:HTML 11.6%