Skip to content

Commit 0350a61

Browse files
committed
Add comment about Go()
Fix #70
1 parent 59c5d3d commit 0350a61

File tree

1 file changed

+2
-1
lines changed
  • 2024/go-wasm-js-cookbook/basic-call-go-from-js

1 file changed

+2
-1
lines changed

2024/go-wasm-js-cookbook/basic-call-go-from-js/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
</body>
6767

6868
<script>
69+
// Instantiate a new Go object (defined in from wasm_exec.js)
6970
const go = new Go();
7071
WebAssembly.instantiateStreaming(fetch("harmonic.wasm"), go.importObject).then(
7172
(result) => {
@@ -80,4 +81,4 @@
8081
});
8182
</script>
8283

83-
</html>
84+
</html>

0 commit comments

Comments
 (0)