Skip to content

Instantly share code, notes, and snippets.

@mainawycliffe
Created December 8, 2022 10:22
Show Gist options
  • Save mainawycliffe/5db8a5169f90efce8b4b3f5d605a2ebb to your computer and use it in GitHub Desktop.
Save mainawycliffe/5db8a5169f90efce8b4b3f5d605a2ebb 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.instantiateStreaming(fetch('wasm.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