11 lines
218 B
Go
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
|
|
}
|