Coder Social home page Coder Social logo

rizalgowandy / goplayspace Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iafan/goplayspace

0.0 1.0 0.0 102 KB

Advanced Go Playground frontend written in Go, with syntax highlighting, turtle graphics mode, and more

Home Page: https://goplay.space

License: Other

Shell 0.71% Go 83.58% HTML 5.43% CSS 10.28%

goplayspace's Introduction

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).

demo

Go Play Space supports the Turtle graphics mode to help visualize algorithms and make learning experience more fun.

draw mode demo

Features

  1. Syntax highlighting, auto-closing braces and quotes, proper undo/redo, auto indentation
  2. 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.
  3. Live syntax error checking
  4. Error line highlighting (both for syntax errors and for errors returned from the compiler)
  5. 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
  6. Keyboard shortcuts (see button captions)
  7. Support for several UI themes
  8. Support for Fira Code font (either the one installed in your system or a webfont)
  9. 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

goplayspace's People

Contributors

iafan avatar damienstanton avatar bbrks avatar johanbrandhorst avatar philippgille avatar rspier avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.