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)
Click to show internal directories.
Click to hide internal directories.