4 ms·
What's the JS interop story with GopherJS? Is it possible to import native JS libraries and use them?
by jzelinskie 11y ago
What's the JS interop story with GopherJS? Is it possible to import native JS libraries and use them?
- nulltype 11y agoGopherJS compiles to "readable" JavaScript, so yes. You have to do something like js.Global.Call("functionname", arg1)
- fizzbatter 11y agoSort of readable, imo. I mean, a few simple function calls are nicely readable, but blocking calls quickly turn into an unreadable mess in my experience.