command
Version:
v1.0.5
Opens a new window with list of versions in this module.
Published: Dec 28, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
gojs example
This shows how to use Wasm built by go using GOOS=js GOARCH=wasm
. Notably,
this uses filesystem support.
$ go run cat.go /test.txt
greet filesystem
Internally, this uses gojs, which implements the custom host
functions required by Go.
Notes:
GOOS=js GOARCH=wasm
wazero be removed after Go 1.22 is released. Please
switch to GOOS=wasip1 GOARCH=wasm
released in Go 1.21.
GOWASM=satconv,signext
enables features in WebAssembly Core Specification
2.0.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.