jsplayground

command module
v0.0.0-...-d1b47bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2017 License: Unlicense Imports: 15 Imported by: 0

README

JS Playground

This is a fork of the gopherjs playground. The main differences are the actual compiler and related functionality are as decoupled from the web interface as much as possible using ec2015 promises and the generate script is replaced with a Go program.

Javascript

// Compile returns a Promise that resolves to the compiled Javascript and rejects with any error(s)
Go.Compile(source)
// Format returns a Promise that resolves to the formatted source and rejects with errors
Go.Format(source,imports)
// RedirectConsole redirects standard output from GopherJS code to function(line)
Go.RedirectConsole(function(line))
// PackageURI sets URI for loading packages
Go.PackageURI(uri string)
// SyncImport synchronously loads package dependencies (may be slow)
Go.SyncImport(bool)

TODO

Fix imports.json generation (methods of public types)

Documentation

Rendered for js/wasm
The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL