A simple framework for running Go scripts.
This is a work in progress still.
These tasks follow xc syntax, therefore can be ran with xc [taskname]
.
Install development tools.
- https://github.com/a-h/templ: A Go HTML templating language.
- https://github.com/cespare/reflex: For watch tasks
go install github.com/a-h/templ/cmd/templ@v0.2.184
go install github.com/cespare/reflex@v0.3.1
Run the web example located at examples/web/main.go
.
reflex -r '.*\.(go|templ)' -R '.*_templ\.go' -s -- sh -c 'templ generate && go run examples/web/main.go'
Run the cli example located at examples/tui/main.go
.
go run examples/tui/main.go
Build all templ templates.
templ generate