Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created December 12, 2018 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/2cb10728b539131a35c4f0c04649b18a to your computer and use it in GitHub Desktop.
Save goofmint/2cb10728b539131a35c4f0c04649b18a to your computer and use it in GitHub Desktop.
const go = new Go();
WebAssembly.instantiateStreaming(fetch("main.wasm"), go.importObject).then((result) => {
go.run(result.instance);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment