Description
Go Play Space is an experimental alternative Go Playground frontend that is built in Go itself (using GopherJS), a Go→JavaScript transpiler, and Vecty, a React-like frontend library for GopherJS). It features dynamic Go package help lookup, syntax highlighting with multiple themes, support for Fira Code font, and turtle graphics interpretation mode for even more fun. It uses the same sharing mechanism as the official Go Playground, meaning that one can use both playgrounds interchangeably with the same shared snippet IDs.
The Go Play Space alternatives and similar packages
Based on the "Go Tools" category.
Alternatively, view The Go Play Space alternatives based on common mentions on social networks and blogs.
-
golang-tutorials
A set of example Go code with tutorials to start learning Go from scratch -
typex
Examine Go types and their transitive dependencies, alternatively export results as TypeScript value objects (or types) declaration. -
gothanks
GoThanks automatically stars your go.mod github dependencies, sending this way some love to their maintainers. -
terminal-Task
Terminal tasks todo with reminder tool for geek -
An exit strategy for go routines.
An exit strategy for go routines -
generator-go-lang
A Yeoman generator to get new Go projects started. -
go-lock
go-lock is a lock library implementing read-write mutex and read-write trylock without starvation -
MessageBus implementation for CQRS projects
CQRS Implementation for Golang language -
go-whatsonchain
Unofficial golang implementation for the WhatsOnChain API -
go-mattercloud
Unofficial golang implementation for the MatterCloud API -
MrZ's go-cache
Cache dependency management on-top of the famous redigo package -
go-api-router
A lightweight API middleware for Julien Schmidt's router: cors, logging, and standardized error handling
Get performance insights in less than 4 minutes
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of The Go Play Space or a related project?
README
About Go Play Space
Go Play Space is an experimental alternative Go Playground frontend that is built in Go itself (using GopherJS), a Go→JavaScript transpiler, and Vecty, a React-like frontend library for GopherJS).
Try it: https://goplay.space
Go Play Space supports the Turtle graphics mode to help visualize algorithms and make learning experience more fun.
Features
- Syntax highlighting, auto-closing braces and quotes, proper undo/redo, auto indentation
- Smart help lookup: double-click on e.g. package keyword or Println function name in source code, and you will see the relevant help topic.
- Live syntax error checking
- Error line highlighting (both for syntax errors and for errors returned from the compiler)
- Ability to highlight lines and blocks of code (like on Github, but better!) — just click on the line numbers. Use Shift and Ctrl to modify the selection
- Keyboard shortcuts (see button captions)
- Support for several UI themes
- Support for Fira Code font (either the one installed in your system or a webfont)
go imports
is always run before running your code, so you don't usually have to worry about imports at all
Code execution is proxied to the official Go Playground, so your programs will work the same. Shared snippets are also stored on golang.org servers.
Running Locally
Download the package:
$ go get -u github.com/iafan/goplayspace/...
Compile both client-side code and server binary:
$ cd $GOPATH/src/github.com/iafan/goplayspace/bin
$ ./build-client && ./build-server
Run the server:
$ ./goplayspace
Then open http://localhost:8080/ in your browser.
Troubleshooting
If you have trouble compiling the client, please make sure you have the latest version of GopherJS installed by running go get -u github.com/gopherjs/gopherjs
(see #6)
Feedback
Feel free to provide your feedback, suggestions or bug reports here in the bug tracker, or message @afan in the Gophers Slack channel.
Credits
Gopher vector logo by Takuya Ueda, licensed under the Creative Commons 3.0 Attributions license and based on original artwork by Renee French. See https://github.com/golang-samples/gopher-vector
Go proverbs: Rob Pike
*Note that all licence references and agreements mentioned in the The Go Play Space README section above
are relevant to that project's source code only.