Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created December 8, 2018 05:33
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/6de789068154c0afa4c53721f0eded10 to your computer and use it in GitHub Desktop.
Save goofmint/6de789068154c0afa4c53721f0eded10 to your computer and use it in GitHub Desktop.
<html>
<head>
<meta charset="utf-8">
<script src="wasm_exec.js"></script>
<script>
const go = new Go();
WebAssembly.instaantiateStreaming(fetch("main.wasm"), go.importObject).then((result) => {
go.run(result.instance);
});
</script>
</head>
<body></body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment