In a few months I will begin working on a component that can be used by several of our web apps. Since I have time I wanted to experiment with writing this in Go/WASM.
The Go code will be a set of functions that take a string and some options (probably in JSON format) and return a string (same string possibly with some fixes) and an array of warnings, errors, etc. (probably in a 2D array). These functions will not need to access the DOM or do any UI/X. It is possible that a web worker will be used to run them (they could be long running). Here is what I think needs to be done: - Write the Go code - Compile to WASM - Publish to NPM At that point, the web apps can import my functions and use them, hopefully as normal JavaScript modules. Any feedback or links to examples where this has been done would be appreciated. I have come across Rust examples like this, but not Go (at least I didn’t recognize any). Thanks! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/0044c8c9-d3a6-4068-9404-eb2ad5c4c404n%40googlegroups.com.