Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrOverrideCellValue = errors.New("override cell value") ErrOverrideCellStyle = errors.New("override cell style") )
Functions ¶
This section is empty.
Types ¶
type BorderItem ¶
type BorderItem struct { Style excelizestyle.BorderStyle Color excelizestyle.BorderColor }
type BorderRange ¶
type BorderRange struct { Top *BorderItem Bottom *BorderItem Left *BorderItem Right *BorderItem Inside *BorderItem }
type DefaultBorders ¶
type DefaultBorders struct { StyleID int Top excelize.Border Bottom excelize.Border Left excelize.Border Right excelize.Border }
type Excelizeam ¶
type Excelizeam interface { // SetDefaultBorderStyle Set default cell border // For example, use when you want to paint the cell background white SetDefaultBorderStyle(style excelizestyle.BorderStyle, color excelizestyle.BorderColor) error SetPageMargins(options *excelize.PageLayoutMarginsOptions) error SetColWidth(colIndex int, width float64) error SetColWidthRange(colIndexMin, colIndexMax int, width float64) error MergeCell(startColIndex, startRowIndex, endColIndex, endRowIndex int) error // SetCellValue Set value and style to cell SetCellValue(colIndex, rowIndex int, value interface{}, style *excelize.Style, overrideValue, overrideStyle bool) error // SetCellValueAsync Set value and style to cell asynchronously SetCellValueAsync(colIndex, rowIndex int, value interface{}, style *excelize.Style, overrideStyle bool) // SetStyleCell Set style to cell SetStyleCell(colIndex, rowIndex int, style excelize.Style, override bool) error // SetStyleCellAsync Set style to cell asynchronously SetStyleCellAsync(colIndex, rowIndex int, style excelize.Style, override bool) // SetStyleCellRange Set style to cell with range SetStyleCellRange(startColIndex, startRowIndex, endColIndex, endRowIndex int, style excelize.Style, override bool) error // SetStyleCellRangeAsync Set style to cell with range asynchronously SetStyleCellRangeAsync(startColIndex, startRowIndex, endColIndex, endRowIndex int, style excelize.Style, override bool) // SetBorderRange Set border around cell range SetBorderRange(startColIndex, startRowIndex, endColIndex, endRowIndex int, borderRange BorderRange, override bool) error // SetBorderRangeAsync Set border around cell range asynchronously SetBorderRangeAsync(startColIndex, startRowIndex, endColIndex, endRowIndex int, borderRange BorderRange, override bool) // Wait // Wait for all running asynchronous operations to finish Wait() error // Write StreamWriter Write(w io.Writer) error // File Get the original excelize.File File() (*excelize.File, error) // CSVRecords Make csv records CSVRecords() ([][]string, error) }
func New ¶
func New(sheetName string) (Excelizeam, error)
type StoredStyle ¶
type StoredStyle struct { StyleID int Style *excelize.Style }
Click to show internal directories.
Click to hide internal directories.