command
Version:
v1.14.0
Opens a new window with list of versions in this module.
Published: Aug 25, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 23
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
WebAssembly zed Package
This package provides zed's functionality via a WebAssembly interface, for use with browser-based tooling.
Warning
The WebAssembly development interface is not stable and subject to change between versions of zed.
Generating WebAssembly
GOOS=js GOARCH=wasm go build -o main.wasm
Testing
go install github.com/agnivade/wasmbrowsertest@latest
GOOS=js GOARCH=wasm go test ./... -exec $(go env GOPATH)/bin/wasmbrowsertest
Integrating with the browser
To see an example of invoking the WebAssembly based interface:
- Build
main.wasm
and copy into the example directory.
- Copy https://github.com/golang/go/blob/master/misc/wasm/wasm_exec.js into the example directory
- Run an HTTP server over the example directory and visit wasm.html:
python3 -m http.server
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.