Bindings

José Luis Aracil Gómez del Campo edited this page Mar 31, 2018 · 60 revisions

Bindings to JavaScript

Isomorphic Libraries

These libraries expose the same API for native architectures (386, amd64, arm) and js architecture. Using them allows writing isomorphic Go code (same Go code that can run in backend and frontend).

Frameworks using GopherJS

Utility functions

  • jsutil.Wrap: Wrap returns a wrapper func that handles the conversion from native JavaScript js.Object parameters to other types. For details see issue 93 (comment).
  • Promise: A Promises/A+ implementation in Go that allows easily exposing idiomatic synchronous Go code to JS by returning a promise.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.