Wasmを汎用バイナリとして利用するためのAPI仕様 WASI 0.1 (=wasip1 - POSIX APIを参考に策定 / ネットワークは未サポート WASI 0.2 (=wasip2 - Wasmコンポーネントモデルをベースに再設計 2018年 8月 G o 1.11 リ リ ー ス W asm サ ポ ー ト 2019年 W A SI 0.1 リ リ ー ス 2023年 8月 G o 1.21 リ リ ー ス W A SI 0.1 サ ポ ー ト 2024年 1月 W A SI 0.2 リ リ ー ス 2024年 8月 W A SI 0.2.1 リ リ ー ス W asm O C I A rtifact layout 2025年 W A SI 0.3 リ リ ー ス ? 2025年 2月 G o 1.24 リ リ ー ス W A SI 0.1 リ ア ク タ ー モ ジ ュ ー ル サ ポ ー ト e.g.$ cat http-server.go package main import ( "fmt" "net/http" ) func handle(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello, 世界!") } func main() { http.HandleFunc("/", handle) fmt.Println("Starting server on :8080") if err := http.ListenAndServe(":8080", nil); err != nil { fmt.Println("Error starting server:", err) } } 標準パッケージはネットワークをサポートしていない GOOS=wasip2 GOARCH=wasmだけだと動かない