xlsx2pb
convert xlsx to protobuf
Installation
go get -u github.com/cittie/xlsx2pb
go install github.com/cittie/xlsx2pb
Usage
Generate config files as "xlsx_xxxxx.config" in xlsx directory with the following content:
SHEETNAME4 XLSXFILENAME2.xlsx
If sheets have the same structure, it can be written as following:
SHEETNAME1,SHEETNAME2,SHEETNAME3 XLSXFILENAME1.xlsx
Then run the xlsx2pb
- Proto files and binary files will be generated in folder 'proto' and 'data'
- Log file will be generated in folder 'log'
Params
Use following param to turn off cache:
-cache=false
Notice
- Sheets in xlsx should be capitalized and use different sheet names.
Support data types
- float(float32)
- float32
- float64
- double(float64)
- int32
- int64
- uint32
- uint64
- sint32
- sint64
- string