Documentation ¶
Overview ¶
Command luapp is a very simple preprocessor for .lua files which inlines "loadfile" statements.
This is intended to allow normal-looking collections of .lua files to be used effectively as Redis scripts, which only allow, essentially, a single module (there are undocumented hacks where you can call other pre-loaded scripts by their SHA1, but this is fragile at best, and still requires an apparatus to load all necessary scripts in order to compute their hashes).
This is designed to be run with a go:generate statement via `go run` on a single .lua file, which will then output an expanded equivalent with the .gen.lua extension.
Click to show internal directories.
Click to hide internal directories.