Versions in this module Expand all Collapse all v0 v0.0.5 Dec 8, 2023 v0.0.4 Feb 1, 2023 v0.0.3 Feb 1, 2023 v0.0.2 Aug 4, 2022 Changes in this version type ExcelExport + Index bool v0.0.1 Aug 2, 2022 Changes in this version + var GetCellValueSimple = func(key string, data map[string]interface{}) interface{} + type ExcelExport struct + Columns []*ExcelHeader + Logger *zap.Logger + Mode GetCellValue + SheetName string + Style *excelize.Style + func (ee *ExcelExport) Export(f *excelize.File, data []map[string]interface{}) error + type ExcelHeader struct + Key string + Title string + Width float64 + type ExportDefine struct + Output *ExcelExport + Query *query.RawQuery + type ExportService struct + DB *gorm.DB + Exports []*ExportDefine + Logger *zap.Logger + func (es *ExportService) DoExport(params map[string]interface{}, w io.Writer) error + func (es *ExportService) Init() + type GetCellValue func(key string, data map[string]interface{}) interface + type Sheet struct + Col int + File *excelize.File + Name string + Row int + StyleID int + func (s *Sheet) GetAxis() string + func (s *Sheet) NextCell() + func (s *Sheet) NextRow() + func (s *Sheet) SetFloat(value float64, prec, bitSize int) + func (s *Sheet) SetHeader(header *ExcelHeader) + func (s *Sheet) SetInt(value int, style ...int) + func (s *Sheet) SetString(value string) + func (s *Sheet) SetValue(value interface{})