xlsx2pb

command module
v0.0.0-...-313d28e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL