:ghost: a real playful Golang Playground
Because:
go get -u github.com/huytd/playgoThat's all! (Given that you have a GOPATH configured, and $GOPATH/bin in your PATH)
Or run in Docker container:
docker build -t playgo .
# may be: docker push ...
docker run -d -p 3000:3000 playgoThis is the simple version of Go Playground. It run locally with no container needed.
There are 2 modes available:
Also called as cli mode. In this mode, the playground will read the code from os.Stdin and execute it. This enable the ability to integrate playgo with other editors such as vim, sublime, atom,...
Usage:
echo 'print("Hello, do some math, 1 + 1 = ", 1 + 1)' | playgoor
cat something.txt | playgoIf you don't like using cli mode, you can use the web IDE by run the following command:
playgo -mode=webThe web IDE will be started at http://localhost:3000 by default.
You can change the port by:
PLAYGO_PORT=8080 playgo -mode=webThis project is licensed under the terms of the MIT license.
It would be nice if you want to contribute to this project. I really need your help, there are a lot of things to do.
Feel free to create a pull request or make an issue to report bugs/request new features. You can see the list of things to do below.
:bow:
gofmt - Recommend to use it only in full code modeimport - Currently available in full code modefunc - Currently available in full code modechannel (real problem is: streaming output)No open issues yet, or sync has not completed.