1
0
mirror of https://github.com/deuill/grawkit.git synced 2024-09-28 00:12:45 +00:00
grawkit/play
Alex Palaistras 3b8c5eca21 Update styling and template
This changes minor aspects of the Playground, including colors, fonts,
and other basic effects, in an effort to improve the aesthetics.
2022-01-22 14:55:45 +00:00
..
static Update styling and template 2022-01-22 14:55:45 +00:00
vendor play: Update to latest Go and GoAWK versions 2022-01-22 14:54:50 +00:00
Dockerfile play: Add basic Dockerfile for isolated Playground 2019-09-06 22:51:45 +01:00
go.mod play: Update to latest Go and GoAWK versions 2022-01-22 14:54:50 +00:00
go.sum play: Update to latest Go and GoAWK versions 2022-01-22 14:54:50 +00:00
play.go Implement initial version of Grawkit Web Playground 2019-08-25 16:30:34 +01:00
README.md Implement initial version of Grawkit Web Playground 2019-08-25 16:30:34 +01:00

The Grawkit Playground

This folder contains an interactive version of Grawkit that can be run in a web-browser (Javascript support optional), built entirely in Go. Once built, this depends only on the contents of the static directory, as well as the grawkit script itself for operation.

Execution of Grawkit is done with goawk, a POSIX-compatible AWK implementation built entirely in Go, and used here as a library.

Installation & Usage

Only a fairly recent version of Go is required to build this package, and the included play.go file can be executed on-the-fly using go run.

The program expects to find a static directory (which is provided alongside the source code here), as well as the grawkit script; by default, these are expected to be found in the current and parent directories, respectively. Alternatively, their locations may be set using command-line arguments, run play -help for more.

By default, this will bind an HTTP server on port 8080, though this can also be modified using the command-line arguments. Run play -help for more.