Initial commit

This commit is contained in:
PhatPhuckDave
2024-07-22 19:58:07 +02:00
commit cd8322cc5a
11 changed files with 354 additions and 0 deletions

19
lua/lua.go Normal file
View File

@@ -0,0 +1,19 @@
package main
import (
"log"
"github.com/yuin/gopher-lua"
)
func init() {
log.SetFlags(log.Lmicroseconds | log.Lshortfile)
}
func main() {
l := lua.NewState()
defer l.Close()
l.DoString(`i = 1; print(i)`)
l.DoString(`i = i + 1; print(i)`)
l.DoString(`print(i)`)
}