Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jzelinskie
· 11y ago · 0 comments
What's the JS interop story with GopherJS? Is it possible to import native JS libraries and use them?
Comments
[–]
nulltype
11y ago
GopherJS compiles to "readable" JavaScript, so yes. You have to do something like js.Global.Call("functionname", arg1)
[–]
fizzbatter
11y ago
Sort 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.