DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Adding Go to a browser code runner

Quality: 8/10 Relevance: 9/10

Summary

An in-depth look at running Go in a browser using WebAssembly. The article compares the common GOOS=js approach with a WASI-based path (GOOS=wasip1) for browser code runners, explains why the GOOS=js route fails inside isolated-vm sandboxes, and provides a practical host shim approach for WASI imports. It includes build instructions and guidance to target WASI for sandbox-friendly code execution.

🚀 Service construit par Johan Denoyer