webtools/site/gotemplate/main.js
Leon Mika d1dee7bc3d
All checks were successful
/ publish (push) Successful in 55s
Added a Go template playground
2025-09-26 17:28:30 +10:00

8 lines
198 B
JavaScript

import "/wasm/wasm_exec.js";
const go = new Go();
WebAssembly.instantiateStreaming(fetch("/wasm/gotemplate.wasm"), go.importObject)
.then((result) => {
go.run(result.instance);
});