Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Bindings

Patricio Whittingslow edited this page Nov 22, 2021 · 65 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.
Clone this wiki locally
Morty Proxy This is a proxified and sanitized view of the page, visit original site.