playground

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

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

Go to latest
Published: Aug 30, 2023 License: BSD-2-Clause Imports: 16 Imported by: 0

README

GopherJS Playground

The playground is a place where users can explore GopherJS without needing to install anything, or to share code with others.

Development

To update the entire playground environment, just run go generate github.com/gopherjs/gopherjs.github.io/playground. It will install your local version of GopherJS compiler, build the playground, make a temporary copy of Go to /tmp/gopherjsplayground_goroot, rebuild and copy the standard library into the pkg directory.

Working on the playground application itself is made easier by using the gopherjs serve command to rebuild and serve the playground every time you refresh the browser.

gopherjs serve

Then open http://localhost:8080/github.com/gopherjs/gopherjs.github.io/playground.

Upgrading GopherJS release

VERSION="$(go list -m -versions -f "{{ range .Versions }}{{ println . }}{{ end }}" github.com/gopherjs/gopherjs | tail -n 1)"
echo "$VERSION"
go get -v "github.com/gopherjs/gopherjs@$VERSION"
go mod tidy

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cmd/precompile
Program precompile updates pre-built standard library packages for the playground.
Program precompile updates pre-built standard library packages for the playground.
imports
Package imports implements a Go pretty-printer (like package "go/format") that also adds or removes import statements as necessary.
Package imports implements a Go pretty-printer (like package "go/format") that also adds or removes import statements as necessary.

Jump to

Keyboard shortcuts

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