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

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

by Lane Wagner3mAugust 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.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - How to Run Go in Your Browser With Web Assembly [ Tutorial ]
Lane Wagner HackerNoon profile picture
Lane Wagner

Lane Wagner

@wagslane

Founder of Boot.dev. Whining about coding sins since 2011. Committing coding sins for the same.

About @wagslane
LEARN MORE ABOUT @WAGSLANE'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Lane Wagner HackerNoon profile picture
Lane Wagner@wagslane
Founder of Boot.dev. Whining about coding sins since 2011. Committing coding sins for the same.

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
Also published here