Warning
Try it at giplay.flaticols.dev
Web-based Go interpreter playground using emicklei/gi.
# Run locally
make run
# Or with go directly
go run .- Monaco editor with Go syntax highlighting
- Auto light/dark theme based on system preference
- Share snippets via URL (
/s/{ulid}) - Embeddable widget for blogs (
/embed/{ulid}) - PWA installable
# Use local gi (../gi directory)
make dev-local
# Switch back to remote gi
make dev-remote
# Run in dev mode
make dev# Build binary
make build
# Docker
make docker-build
make docker-run
# Apple Container
make container-build
make container-run| Endpoint | Method | Description |
|---|---|---|
/api/run |
POST | Execute Go code |
/api/share |
POST | Save snippet, returns {id} |
/api/s/{id} |
GET | Get snippet code |
./gi-playground -addr :8080 -db snippets.dbThe gi interpreter has access to Go's standard library (os, os/exec, etc.). For production, run inside a container with restricted permissions.
MIT