linstrom/plugins/util.go
mstar 94106bb82f
Some checks failed
/ docker (push) Has been cancelled
Start work on lua based plugin system
2025-06-02 17:40:53 +02:00

11 lines
218 B
Go

package plugins
import lua "github.com/yuin/gopher-lua"
func lTableToMap(t *lua.LTable) map[lua.LValue]lua.LValue {
m := map[lua.LValue]lua.LValue{}
t.ForEach(func(l1, l2 lua.LValue) {
m[l1] = l2
})
return m
}