Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cell ¶
type Cell struct { Key string Value interface{} // contains filtered or unexported fields }
Cell represents a cell in a worksheet. A row has a collection of cells.
type CellOptions ¶
type CellOptions struct { Key *string Value interface{} }
CellOptions has options used when creating a new cell.
type Row ¶
type Row struct {
// contains filtered or unexported fields
}
Row represents a row in a worksheet. A worksheet has a collection of rows.
type Workbook ¶
type Workbook struct { FilePath string // contains filtered or unexported fields }
Workbook represents a spreadsheet workbook.
func NewWorkbook ¶
NewWorkbook creates a new workbook, which is the base for every XLSX file.
func (*Workbook) AddWorksheet ¶
func (wb *Workbook) AddWorksheet(opts *WorksheetOptions) *Worksheet
AddWorksheet adds a new worksheet to the workbook.
func (*Workbook) HasPendingWorksheets ¶
HasPendingWorksheets indicates whether or not the workbook has worksheets yet to be committed.
type Worksheet ¶
type Worksheet struct {
// contains filtered or unexported fields
}
Worksheet represents a worksheet in a workbook.
func (*Worksheet) CommitRows ¶
CommitRows commits rows stored in memory.
func (*Worksheet) DefineColumns ¶
func (ws *Worksheet) DefineColumns(columns []*WorksheetColumn) error
DefineColumns defines the worksheet columns. It's optional.
type WorksheetColumn ¶
WorksheetColumn represents a column in a worksheet.
type WorksheetOptions ¶
type WorksheetOptions struct {
Name string
}
WorksheetOptions has options used when creating a new worksheet.