1 2 3 4 5 6
package wasm //go:wasmexport malloc func Malloc(size uint32) Buffer { return FromSlice(make([]byte, size)) }