luapp

command
v0.0.0-...-ff9afc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL