github.com/wasilibs/wazerox@v0.0.0-20240124024944-4923be63ab5f/experimental/gojs/example/README.md (about) 1 ## gojs example 2 3 This shows how to use Wasm built by go using `GOOS=js GOARCH=wasm`. Notably, 4 this uses filesystem support. 5 6 ```bash 7 $ go run cat.go /test.txt 8 greet filesystem 9 ``` 10 11 Internally, this uses [gojs](../README.md), which implements the custom host 12 functions required by Go. 13 14 Notes: 15 * `GOOS=js GOARCH=wasm` wazero be removed after Go 1.22 is released. Please 16 switch to `GOOS=wasip1 GOARCH=wasm` released in Go 1.21. 17 * `GOWASM=satconv,signext` enables features in WebAssembly Core Specification 18 2.0.