Add small note about WASI port
diff --git a/WebAssembly.asciidoc b/WebAssembly.asciidoc
index e22ec1d..e51e318 100644
--- a/WebAssembly.asciidoc
+++ b/WebAssembly.asciidoc
@@ -10,7 +10,7 @@
Go 1.11 added an experimental port to WebAssembly. Go 1.12 has
improved some parts of it, with further improvements expected in Go
-1.13.
+1.13. Go 1.21 added a new port targeting the WASI syscall API.
WebAssembly is described on its https://webassembly.org[home page] as:
@@ -25,7 +25,7 @@
**********************************************************************
-# Getting Started
+# Getting Started (browser)
This page assumes a functional Go 1.11 or newer installation. For
troubleshooting, see the https://github.com/golang/go/wiki/InstallTroubleshooting[Install Troubleshooting]
@@ -115,6 +115,16 @@
modify the program, rebuild `main.wasm`, and refresh to see new
output.
+# Getting started (backend)
+
+Go 1.21 introduced WASI as a supported platform. To build for WASI, use the `wasip1` port:
+
+```sh
+$ GOOS=wasip1 GOARCH=wasm go build -o main.wasm
+```
+
+The official blog has a helpful introduction to using the WASI port: https://go.dev/blog/wasi.
+
# Executing WebAssembly with Node.js
It's possible to execute compiled WebAssembly modules using Node.js