Documentation
¶
Index ¶
- type ExcelClient
- func (c *ExcelClient) CreateCell(workbookID, sheetID string, row int, column string, value interface{}) (*models.Cell, error)
- func (c *ExcelClient) CreateSheet(workbookID, sheetName string) (*models.Sheet, error)
- func (c *ExcelClient) CreateWorkbook(folderPath, fileName, extension, id string) (*models.Workbook, error)
- func (c *ExcelClient) DeleteCell(workbookID, sheetID, cellID string) error
- func (c *ExcelClient) DeleteSheet(workbookID, sheetID string) error
- func (c *ExcelClient) DeleteWorkbook(id string) error
- func (c *ExcelClient) GetExtensions() []string
- func (c *ExcelClient) PrintWorkbookList()
- func (c *ExcelClient) ReadCell(workbookID, sheetID, cellID string) (*models.Cell, error)
- func (c *ExcelClient) ReadSheet(workbookID, sheetID string) (*models.Sheet, error)
- func (c *ExcelClient) ReadWorkbook(id string) (*models.Workbook, error)
- func (c *ExcelClient) UpdateCell(cell *models.Cell) (*models.Cell, error)
- func (c *ExcelClient) UpdateSheet(sheet *models.Sheet) (*models.Sheet, error)
- func (c *ExcelClient) UpdateWorkbook(workbook *models.Workbook) (*models.Workbook, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExcelClient ¶
type ExcelClient struct {
// contains filtered or unexported fields
}
func NewExcelClient ¶
func NewExcelClient() (*ExcelClient, error)
func (*ExcelClient) CreateCell ¶
func (*ExcelClient) CreateSheet ¶
func (c *ExcelClient) CreateSheet(workbookID, sheetName string) (*models.Sheet, error)
func (*ExcelClient) CreateWorkbook ¶
func (c *ExcelClient) CreateWorkbook(folderPath, fileName, extension, id string) (*models.Workbook, error)
CreateExcel creates an excel file in the specified folder path with the specified file name and extension
func (*ExcelClient) DeleteCell ¶
func (c *ExcelClient) DeleteCell(workbookID, sheetID, cellID string) error
func (*ExcelClient) DeleteSheet ¶
func (c *ExcelClient) DeleteSheet(workbookID, sheetID string) error
func (*ExcelClient) DeleteWorkbook ¶
func (c *ExcelClient) DeleteWorkbook(id string) error
func (*ExcelClient) GetExtensions ¶
func (c *ExcelClient) GetExtensions() []string
func (*ExcelClient) PrintWorkbookList ¶
func (c *ExcelClient) PrintWorkbookList()
func (*ExcelClient) ReadCell ¶
func (c *ExcelClient) ReadCell(workbookID, sheetID, cellID string) (*models.Cell, error)
func (*ExcelClient) ReadSheet ¶
func (c *ExcelClient) ReadSheet(workbookID, sheetID string) (*models.Sheet, error)
func (*ExcelClient) ReadWorkbook ¶
func (c *ExcelClient) ReadWorkbook(id string) (*models.Workbook, error)
func (*ExcelClient) UpdateCell ¶
func (*ExcelClient) UpdateSheet ¶
func (*ExcelClient) UpdateWorkbook ¶
Click to show internal directories.
Click to hide internal directories.