Documentation ¶
Overview ¶
Package excels Package internal Time : 2022/9/3 15:26 Author : xushiyin contact : yuqingxushiyin@gmail.com
Index ¶
- func GetDaysReports(startDate string, rangeCnt int, onlyContent bool, logger *log.Entry) (string, error)
- type DailyReport
- type Excels
- func (e *Excels) FindDateCell(date string) ([]string, error)
- func (e *Excels) FindValidRowNumber() int
- func (e *Excels) GetOneDayDailyReport(month string, date string) ([][]string, error)
- func (e *Excels) GetRowAxis(axis string, line int) ([]string, error)
- func (e *Excels) GetRowData(axis []string) ([]string, error)
- func (e *Excels) GetSheetMonth() []string
- func (e *Excels) IsExcelExists() (bool, error)
- func (e *Excels) LogErr(err error, message string, args ...interface{}) error
- func (e *Excels) MergeDateCell(date string) error
- func (e *Excels) OpenFile() error
- func (e *Excels) ReadOneDayDailyReportFromExcel(dateFlag string, rangeFlag int, stdOutFlag, onlyContent bool) (string, error)
- func (e *Excels) RenderData(ds [][][]string, stdOutFlag, onlyContent bool) (string, error)
- func (e *Excels) WriteDailyReport(rowNum int, dr *DailyReport) error
- func (e *Excels) WriteDailyReport2Excel(dr *DailyReport) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DailyReport ¶
type Excels ¶
type Excels struct { FilePath string Sheet string FilePassword string File *excelize.File Logger *log.Entry }
func (*Excels) FindValidRowNumber ¶
FindValidRowNumber return the number of valid rows in the sheet
func (*Excels) GetOneDayDailyReport ¶
func (*Excels) GetSheetMonth ¶
func (*Excels) IsExcelExists ¶
func (*Excels) MergeDateCell ¶
func (*Excels) ReadOneDayDailyReportFromExcel ¶
func (*Excels) RenderData ¶ added in v0.2.0
func (*Excels) WriteDailyReport ¶
func (e *Excels) WriteDailyReport(rowNum int, dr *DailyReport) error
WriteDailyReport writes the daily report to the valid row of Excel file
func (*Excels) WriteDailyReport2Excel ¶
func (e *Excels) WriteDailyReport2Excel(dr *DailyReport) error
Click to show internal directories.
Click to hide internal directories.