mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-18 12:44:19 +01:00
* Update protos * Update handlers * Support macaroons and TLS * Add arkd cli * Minor fixes * Update deps * Fixes * Update makefile * Fixes * Fix * Fix * Fix * Remove trusted onboarding from client * Completely remove trusted onboarding * Fix compose files and add --no-macaroon flag to arkd cli * Lint * Remove e2e for trusted onboarding * Add sleep time
USAGE
This example demonstrates how to compile ARK Go SDK to WebAssembly and use it in a web page.
-
Create a Go file with the main package, check main.go.
-
Copy
wasm_exec.js:cp $(go env GOROOT)/misc/wasm/wasm_exec.js . -
Build the Go code to WebAssembly:
GOOS=js GOARCH=wasm go build -o main.wasm main.go -
Load the WebAssembly module in a web page, check index.html.
-
Serve the files:
python3 -m http.server 8000