MCPcopy
hub / github.com/brimdata/zui / initZedWasm

Function initZedWasm

packages/zed-wasm/src/browser.js:5–13  ·  view source on GitHub ↗
(fetchRequest)

Source from the content-addressed store, hash-verified

3import { createInterface } from './interface.js';
4
5export 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
15function getInput(input) {
16 if (typeof input === 'string') return input;

Callers

nothing calls this directly

Calls 2

createInterfaceFunction · 0.90
runMethod · 0.65

Tested by

no test coverage detected