Questions tagged [go-wasm]
7 questions
2
votes
0 answers
Envoy WASM filter fails to load due to missing import: wasi_snapshot_preview1.fd_filestat_get
I am trying to create an Envoy filter using Golang WASM.
As soon as I add the following import: "google.golang.org/protobuf/proto"
And the following usage under OnHttpRequestBody:
func (ctx *setBodyContext) OnHttpRequestBody(bodySize int,…

Ohad
- 183
- 3
- 12
2
votes
0 answers
How to show progress during upload asynchronously with WASM
I am currently using Go WASM to upload a file to a server. During the upload it shall emit a call to update the upload progress in the UI.
I am currently using the following struct to have an indication of the progress:
type progressReporter struct…

Force
- 6,312
- 7
- 54
- 85
1
vote
1 answer
How can I pass an array of string `string[]` from js to go using `syscall/js`
having this go function
func WasmCount(this js.Value, args []js.Value) interface {} {
const firstParam = args[0].ArrayOfString() // <-- I want to achieve this
return firstParam.Length
}
and I will call it from js like this
WasmCount(["a", "b"])…

amd
- 20,637
- 6
- 49
- 67
1
vote
1 answer
Export function from GO compiling WASM
Hi I want to make a compile a GO file intro WASM and run in from a node server.
In the index.html i have this: