paint-brush
How to Run Go in Your Browser With Web Assembly [ Tutorial ] by@wagslane
407 reads
407 reads

How to Run Go in Your Browser With Web Assembly [ Tutorial ]

by Lane WagnerAugust 11th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The Go Playground is a new playground that doesn't use a remote server to run code, just to compile it. The code runs in your browser using web assembly (WASM) When a user clicks "run", the code (as text) is sent back to our servers. The server is written in Go. The handler for the API looks something like this: "Run" The handler simply takes code as input and responds with a slice of WASM bytes. The front-end is written as a Vue.js single page app.
featured image - How to Run Go in Your Browser With Web Assembly [ Tutorial ]
Lane Wagner HackerNoon profile picture
Lane Wagner

Lane Wagner

@wagslane

L O A D I N G
. . . comments & more!

About Author

Lane Wagner HackerNoon profile picture
Lane Wagner@wagslane

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite