Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = &Options{
StartRow: 0,
HandleEmptyRow: 0,
}
View Source
var DefaultSheetName = "Sheet1"
Functions ¶
This section is empty.
Types ¶
type SheetResult ¶
type SheetResult struct { SheetName string RawBytes []byte Rows int CostTime time.Duration SheetJson sheetJSONMap }
func ConvertFirstSheet ¶
func ConvertFirstSheet(xlsxPath string, options *Options) (*SheetResult, error)
Convert first excel sheet to json
func ConvertOneSheet ¶
func ConvertOneSheet(xlsxPath string, sheetName string, options *Options) (*SheetResult, error)
Convert specified one excel sheet to json
func (*SheetResult) OnlyJson ¶
func (sr *SheetResult) OnlyJson() string
func (*SheetResult) Summary ¶
func (sr *SheetResult) Summary() string
type TotalResult ¶
type TotalResult struct { SheetResults map[string]*SheetResult //key为sheetName Bytes []byte }
/////////////////
func ConvertAllSheets ¶
func ConvertAllSheets(xlsxPath string, options *Options) (*TotalResult, error)
Convert all excel sheets to json
func (*TotalResult) OnlyJson ¶
func (tr *TotalResult) OnlyJson() string
func (*TotalResult) OnlyJsonBytes ¶
func (tr *TotalResult) OnlyJsonBytes() []byte
func (*TotalResult) Summary ¶
func (tr *TotalResult) Summary() string
Click to show internal directories.
Click to hide internal directories.