3 ms·
Could this be used to deploy Go CLI programs as web apps? I haven’t worked with WASM before, but it seems like you should be able to sniff the CLI definition a
by pbronez 4y ago
Could this be used to deploy Go CLI programs as web apps?
I haven’t worked with WASM before, but it seems like you should be able to sniff the CLI definition and expose the arguments and flags as basic web components / widgets.
- shantnutiwari 4y agoGotty can already do that
- adrianfcole 4y ago(wazero maintainer) no this doesn't really help with that. This runs wasm in Go, regardless of which language compiled to wasm. TinyGo [1] is the most popular option to compile Go into wasm, and they have some instructions for web browser embedding. [1] https://tinygo.org/docs/guides/webassembly/ https://tinygo.org/docs/guides/webassembly/
- pbronez 4y agoAh, thanks for the clarification!