gluagen

command
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Command gluagen generates Lua binding code for Go packages.

Usage:

gluagen [flags] <package-path>

Flags:

-o file       Output file (default: stdout)
-pkg name     Output package name (default: same as input)
-module name  Lua module name (default: package name)

gluagen scans the specified Go package for //glua:bind annotations and generates type-safe Lua binding code that uses the go-lua stack API directly (no reflection).

Annotations:

//glua:bind                 — bind a function or type
//glua:bind name=lua_name   — custom Lua name
//glua:module name=modname  — set the Lua module name (file-level)

Jump to

Keyboard shortcuts

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