grawkit/play
Alex Palaistras 7a50537810 play: Update Go module path
This will now point to the vanity `go.deuill.org` path, which will make
any future migration to different sources simpler.
2022-10-29 19:51:01 +01:00
..
static play: Update Go, use `embed` for static content 2022-10-20 17:40:31 +01:00
vendor play: Update Go, use `embed` for static content 2022-10-20 17:40:31 +01:00
Containerfile play: Update Go, use `embed` for static content 2022-10-20 17:40:31 +01:00
README.md Implement initial version of Grawkit Web Playground 2019-08-25 16:30:34 +01:00
go.mod play: Update Go module path 2022-10-29 19:51:01 +01:00
go.sum play: Update Go, use `embed` for static content 2022-10-20 17:40:31 +01:00
play.go play: Update Go module path 2022-10-29 19:51:01 +01:00

README.md

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.