dennwc / dom

DOM library for Go and WASM
Apache License 2.0
486 stars 59 forks source link

Replace syscall/js with gopherwasm #23

Closed noartem closed 5 years ago

noartem commented 5 years ago

Replace syscall/js with gopherwasm/js.

GopherWasm is a wrapper for GopherJS (gopherjs/js) and Wasm (syscall/js). With this, you can make your application work with both GopherJS and Wasm. GopherWasm's API emulates syscall/js, so please refer syscall/js API document to know how to use API of GopherWasm.

This will allow to compile the programs for wasm and gopherjs without any changes.

dennwc commented 5 years ago

I don't think adding yet another wrapper library to this one is a good idea. Maybe it will be better to inline that code for GopherJS into this library?

Unfortunately, I don't have time to work on it right now. So feel free to open a PR if you are interested in contributing it.