https://github.com/cuixin/xls2lua
excel to lua tool
https://github.com/cuixin/xls2lua
excel lua xls2lua
Last synced: 4 months ago
JSON representation
excel to lua tool
- Host: GitHub
- URL: https://github.com/cuixin/xls2lua
- Owner: cuixin
- License: mit
- Created: 2018-05-04T08:34:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-12-11T10:50:24.000Z (about 5 years ago)
- Last Synced: 2023-03-23T23:58:29.739Z (almost 3 years ago)
- Topics: excel, lua, xls2lua
- Language: Go
- Size: 29.3 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Excel to Lua
The first row will be ignored, this row is used for designer's description.
The second row is used for the generated Lua's field.
Support field types:
1. number
2. string
3. array
4. bool
If you want to ignore the field, use the hyphen character(-).
Example:
```
唯一ID 名称 忽略列 数值 数组 是否
Id:number Name:string - Float:number Array:array Bool:bool
1 中华 - 1.2444 {1,2,3} TRUE
2 消息 - 3 {1,2,4} TRUE
3 心宿二 - 4 {1,2,5} FALSE
4 短短的 - 5 {1,2,6} TRUE
5 啊啊啊 - 5 {1,2,7} TRUE
```
```
go run xls2lua.go
```
Show the results:
```
lua test.lua
```