Need help with wasm-go-playground?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

234 Stars 7 Forks 32 Commits 4 Opened issues


Go compiler running entirely in your browser

Services available


Need anything else?

Contributors list

# 96,324
React N...
32 commits


This is the Go compiler ("gc") compiled for WASM, running in your browser! It can be used to run a simple playground, à la entirely in your browser!

You can try it out here:

⚠️ Important ⚠️

  • Safari works, but is unbearably slow. Chrome or Firefox for desktop is highly recommended.
  • Imports other than "runtime" are not supported. Making them work would be straightforward, but I'm not compelled to spend time on it right now since this probably has no practical uses.

Experimental Playgrounds

One potential use-case for this is making compiler changes easily and freely available for people to try out.

If you're interested in trying out the

proposal, you can do so here:

If you're interested in trying out generics draft design, you can do so here:


  • ./cmd – These are Go commands compiled for WASM. They were all produced by running commands such as
    GOOS=js GOARCH=wasm go build .
    from the Go source directories.
  • ./experimental – This directory contains experimental playgrounds, for testing out modified compilers.
  • ./prebuilt – These are prebuilt runtime WASM files. These were produced by copying them from Go's cache after compiling anything for WASM.
  • . – The top level directory contains all the static files for the in-browser Go playground. Most of the files are lightly modified copies of bits and pieces from The most substantial work here is in index.html and wasmexec.js as wasmexec.js needed a virtual filesystem implementation.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.