Categorygithub.com/uberswe/go-lua-table-parser
modulepackage
0.0.0-20211114113914-19d77dd392a9
Repository: https://github.com/uberswe/go-lua-table-parser.git
Documentation: pkg.go.dev

# README

go-lua-table-parser

A simple go package which takes a lua table as input and parses it to a map[string]interface{} where interface{} is either more map[string]interface{} or map[string]string.

This package uses the github.com/yuin/gopher-lua package.

Usage:

import parser "github.com/uberswe/go-lua-table-parser"

luaString := `Vars =
{
    ["key"] = 
    {
        ["someOtherKey"] = "value"
    }
}`

func main() {
    parser.Parse(luaString, "Vars")
}

# Functions

Parse takes a lua table as a string (s) and then the variable name of the lua table as arguments and returns a map[string]interface{} where interface{} is either more map[string]interface{} or map[string]string.
ParseByLState require "*lua.LState" and the name of table/variable */.
No description provided by the author