(fetchRequest)
| 3 | import { createInterface } from './interface.js'; |
| 4 | |
| 5 | export async function initZedWasm(fetchRequest) { |
| 6 | const go = new Go(); |
| 7 | const { instance } = await WebAssembly.instantiateStreaming( |
| 8 | fetchRequest, |
| 9 | go.importObject |
| 10 | ); |
| 11 | go.run(instance); |
| 12 | return createInterface(__go_wasm__, { getInput }); |
| 13 | } |
| 14 | |
| 15 | function getInput(input) { |
| 16 | if (typeof input === 'string') return input; |
nothing calls this directly
no test coverage detected