Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

WebAssembly with the Go Language

via egghead.io

Overview

Go is a server-side language, but today we can compile Go code to WebAssembly as well - making it possible for us to bring programs written in minimalistic Go code into the browser!
With this collection, we will learn how to compile and run Go WebAssembly programs in Node.js and the browser, and how our Go code can interop with JavaScript and manipulate the DOM. We will also talk about configuring our VS Code workspace and optimizing the Go WASM binary size.

Syllabus

  • Compile and execute a Go WebAssembly program with Node
  • Optimize Go WebAssembly binary size with TinyGo
  • Manually load a Go WebAssembly binary in a browser
  • Configure Go Build Constraints in VS Code to work with WebAssembly
  • Access JS Functions and Variables from a Go WebAssembly Program
  • Interact with the DOM using Go's `syscall/js` module
  • Call a Go WebAssembly function from JavaScript

Taught by

Xiaoru Li

Reviews

4.6 rating at egghead.io based on 25 ratings

Start your review of WebAssembly with the Go Language

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.