package lua

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)`)
}
