WebAssembly promises taking browser programming up to the next level thanks to opening it to almost any compiled language (even C++ or Rust). This opens a wide variety of possibilities, not only in terms of performance, but also will allow porting many legacy apps to the browser.
However, most browser libraries and APIs only provide Javascript interfaces. This talk explains how to use the standard Go/JS interconnection library to allow you instantiating JS objects, invoking methods, accessing properties and even provide callbacks.
type: standard
level: beginner/medium
language: english
twitter: @MaciasUPC
[X] I have read and agree the Talk standards
Interconnecting Go with your Javascript libraries
¡Go targets WebAssembly architecture!
WebAssembly promises taking browser programming up to the next level thanks to opening it to almost any compiled language (even C++ or Rust). This opens a wide variety of possibilities, not only in terms of performance, but also will allow porting many legacy apps to the browser.
However, most browser libraries and APIs only provide Javascript interfaces. This talk explains how to use the standard Go/JS interconnection library to allow you instantiating JS objects, invoking methods, accessing properties and even provide callbacks.