Skip to content

Commit

Permalink
Web build
Browse files Browse the repository at this point in the history
  • Loading branch information
sansmoraxz committed May 2, 2024
0 parents commit 536df78
Show file tree
Hide file tree
Showing 4 changed files with 584 additions and 0 deletions.
Binary file added demo.wasm
Binary file not shown.
23 changes: 23 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!-- <!doctype html>
<!--
Copyright 2018 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
-->
<!doctype html>
<html>

<head>
<meta charset="utf-8" />
<script src="wasm_exec.js"></script>
<script>
const go = new Go();
WebAssembly.instantiateStreaming(fetch("demo.wasm"), go.importObject).then((result) => {
go.run(result.instance);
});
</script>
</head>

<body></body>

</html>
Binary file added test.wasm
Binary file not shown.
Loading

0 comments on commit 536df78

Please sign in to comment.