A simple CLI tool for converting code from Lua to Go syntax.
It only handles syntax (and even that still can be a bit off). You still need to manually replace any with proper types, implement or import missing functions, run go fmt.
The main purpose of the project is to assist in rewriting code from Lua to Go, not to fully automate it. I use it for porting games from PICO-8 to Firefly Zero, often with an assistance of pico8dis (and always with the author's permission, of course).
go install github.com/orsinium-labs/lua2go@maincat main.lua | lua2go > main.go