Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/uberswe/go-lua-table-parser
- Owner: uberswe
- License: mit
- Created: 2021-07-10T10:14:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-14T11:39:14.000Z (about 3 years ago)
- Last Synced: 2024-06-21T03:16:05.466Z (6 months ago)
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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")
}
```