Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/uberswe/go-lua-table-parser

A simple 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
https://github.com/uberswe/go-lua-table-parser

Last synced: about 2 months ago
JSON representation

A simple 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

Awesome Lists containing this project

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](https://github.com/yuin/gopher-lua) package.

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

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

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