1
This commit is contained in:
@@ -17,7 +17,6 @@ type Obj2ExcelSheetConfig struct {
|
||||
}
|
||||
|
||||
func Obj2Excel(sheetList []*Obj2ExcelSheetConfig) []byte {
|
||||
globals.SugarLogger.Debug("Obj2Excel")
|
||||
excelFile := excelize.NewFile()
|
||||
//for sheetIndex, sheetConfig := range sheetList {
|
||||
for _, sheetConfig := range sheetList {
|
||||
@@ -114,7 +113,6 @@ func Obj2Excel(sheetList []*Obj2ExcelSheetConfig) []byte {
|
||||
}
|
||||
|
||||
func Excel2Slice(reader io.Reader) (contents map[string][][]string) {
|
||||
globals.SugarLogger.Debug("Excel2Slice")
|
||||
if excelFile, err := excelize.OpenReader(reader); err == nil {
|
||||
contents = make(map[string][][]string)
|
||||
for _, v := range excelFile.GetSheetMap() {
|
||||
|
||||
Reference in New Issue
Block a user