Go WebAssembly: Binding structures to JS references
admin last edited by
Support for WebAssembly will be shipped with Go 1.11 (expected in august 2018), and with it the brand new syscall/js package.
The syscall/js package allows our Go code to interact with JS references, mainly through the js.Value type with methods such as Get(), Set() or Invoke().
Read the full article: https://medium.zenika.com/go-webassembly-binding-structures-to-js-references-4eddd6fd4d23