client

package
v0.0.0-...-0a0c50c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 6 Imported by: 6

Documentation

Index

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 (c *ExcelClient) CreateCell(workbookID, sheetID string, row int, column string, value interface{}) (*models.Cell, error)

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 (c *ExcelClient) UpdateCell(cell *models.Cell) (*models.Cell, error)

func (*ExcelClient) UpdateSheet

func (c *ExcelClient) UpdateSheet(sheet *models.Sheet) (*models.Sheet, error)

func (*ExcelClient) UpdateWorkbook

func (c *ExcelClient) UpdateWorkbook(workbook *models.Workbook) (*models.Workbook, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL