Versions in this module Expand all Collapse all v2 v2.6.8 Dec 9, 2022 v2.6.7 Dec 9, 2022 Changes in this version + const MaxFileNameLength + const OrientationLandscape + const OrientationPortrait + const TotalColumns + var ErrEncrypt = errors.New("not support encryption currently") + var ErrMaxFileNameLength = errors.New("file name length exceeds maximum limit") + var ErrWorkbookExt = errors.New("unsupported workbook extension") + type AutoPageBreaks bool + type BaseColWidth uint8 + type BlackAndWhite bool type CellType + const CellTypeString + type CodeName string type Comment + Ref string + type CustomHeight bool + type DefaultColWidth float64 + type DefaultGridColor bool + type DefaultRowHeight float64 + type EnableFormatConditionsCalculation bool type File + func (f *File) GetSheetFormatPr(sheet string, opts ...SheetFormatPrOptionsPtr) error + func (f *File) GetSheetPrOptions(name string, opts ...SheetPrOptionPtr) error + func (f *File) GetSheetViewOptions(name string, viewIndex int, opts ...SheetViewOptionPtr) error + func (f *File) GetWorkbookPrOptions(opts ...WorkbookPrOptionPtr) error + func (f *File) InsertCol(sheet, col string) error + func (f *File) InsertRow(sheet string, row int) error + func (f *File) SetSheetFormatPr(sheet string, opts ...SheetFormatPrOptions) error + func (f *File) SetSheetPrOptions(name string, opts ...SheetPrOption) error + func (f *File) SetSheetViewOptions(name string, viewIndex int, opts ...SheetViewOption) error + func (f *File) SetWorkbookPrOptions(opts ...WorkbookPrOption) error + type FilterPrivacy bool + type FirstPageNumber uint + type FitToHeight int + type FitToPage bool + type FitToWidth int + type FormatHeaderFooter struct + AlignWithMargins bool + DifferentFirst bool + DifferentOddEven bool + EvenFooter string + EvenHeader string + FirstFooter string + FirstHeader string + OddFooter string + OddHeader string + ScaleWithDoc bool + type FormatPageMargins struct + Bottom string + Footer string + Header string + Left string + Right string + Top string + type FormatSheetProtection struct + AlgorithmName string + AutoFilter bool + DeleteColumns bool + DeleteRows bool + EditObjects bool + EditScenarios bool + FormatCells bool + FormatColumns bool + FormatRows bool + InsertColumns bool + InsertHyperlinks bool + InsertRows bool + Password string + PivotTables bool + SelectLockedCells bool + SelectUnlockedCells bool + Sort bool + type OutlineSummaryBelow bool + type PageLayoutOption interface + type PageLayoutOptionPtr interface + type PageLayoutOrientation string + type PageLayoutPaperSize int + type PageLayoutScale uint + type PageMarginBottom float64 + type PageMarginFooter float64 + type PageMarginHeader float64 + type PageMarginLeft float64 + type PageMarginRight float64 + type PageMarginTop float64 + type PageMarginsOptions interface + type PageMarginsOptionsPtr interface + type PivotTableOption struct + ColGrandTotals bool + Columns []PivotTableField + CompactData bool + Data []PivotTableField + DataRange string + Filter []PivotTableField + MergeItem bool + PageOverThenDown bool + PivotTableRange string + PivotTableStyleName string + RowGrandTotals bool + Rows []PivotTableField + ShowColHeaders bool + ShowColStripes bool + ShowDrill bool + ShowError bool + ShowLastColumn bool + ShowRowHeaders bool + ShowRowStripes bool + UseAutoFormatting bool + type Published bool + type RightToLeft bool + type SheetFormatPrOptions interface + type SheetFormatPrOptionsPtr interface + type SheetPrOption interface + type SheetPrOptionPtr interface + type SheetViewOption interface + type SheetViewOptionPtr interface + type ShowFormulas bool + type ShowGridLines bool + type ShowRowColHeaders bool + type ShowRuler bool + type ShowZeros bool + type SparklineOption struct + Axis bool + CustMax int + CustMin int + DateAxis bool + EmptyCells string + First bool + FirstColor string + Hidden bool + High bool + HightColor string + Last bool + LastColor string + Location []string + Low bool + LowColor string + Markers bool + MarkersColor string + Max int + Min int + Negative bool + NegativeColor string + Range []string + Reverse bool + SeriesColor string + Style int + Type string + Weight float64 type StreamWriter + File *File + type TabColor string + type ThickBottom bool + type ThickTop bool + type TopLeftCell string + type View string + type WorkbookPrOption interface + type WorkbookPrOptionPtr interface + type ZeroHeight bool + type ZoomScale float64 v2.6.3 Dec 8, 2022 Changes in this version + const Area + const Area3D + const Area3DPercentStacked + const Area3DStacked + const AreaPercentStacked + const AreaStacked + const Bar + const Bar3DClustered + const Bar3DConeClustered + const Bar3DConePercentStacked + const Bar3DConeStacked + const Bar3DCylinderClustered + const Bar3DCylinderPercentStacked + const Bar3DCylinderStacked + const Bar3DPercentStacked + const Bar3DPyramidClustered + const Bar3DPyramidPercentStacked + const Bar3DPyramidStacked + const Bar3DStacked + const BarOfPieChart + const BarPercentStacked + const BarStacked + const Bubble + const Bubble3D + const Col + const Col3D + const Col3DClustered + const Col3DCone + const Col3DConeClustered + const Col3DConePercentStacked + const Col3DConeStacked + const Col3DCylinder + const Col3DCylinderClustered + const Col3DCylinderPercentStacked + const Col3DCylinderStacked + const Col3DPercentStacked + const Col3DPyramid + const Col3DPyramidClustered + const Col3DPyramidPercentStacked + const Col3DPyramidStacked + const Col3DStacked + const ColPercentStacked + const ColStacked + const ColorMappingTypeAccent1 + const ColorMappingTypeAccent2 + const ColorMappingTypeAccent3 + const ColorMappingTypeAccent4 + const ColorMappingTypeAccent5 + const ColorMappingTypeAccent6 + const ColorMappingTypeDark1 + const ColorMappingTypeDark2 + const ColorMappingTypeFollowedHyperlink + const ColorMappingTypeHyperlink + const ColorMappingTypeLight1 + const ColorMappingTypeLight2 + const ColorMappingTypeUnset + const ContentTypeAddinMacro + const ContentTypeDrawing + const ContentTypeDrawingML + const ContentTypeMacro + const ContentTypeSheetML + const ContentTypeSpreadSheetMLChartsheet + const ContentTypeSpreadSheetMLComments + const ContentTypeSpreadSheetMLPivotCacheDefinition + const ContentTypeSpreadSheetMLPivotTable + const ContentTypeSpreadSheetMLSharedStrings + const ContentTypeSpreadSheetMLTable + const ContentTypeSpreadSheetMLWorksheet + const ContentTypeTemplate + const ContentTypeTemplateMacro + const ContentTypeVBA + const ContentTypeVML + const Contour + const DataValidationOperatorBetween + const DataValidationOperatorEqual + const DataValidationOperatorGreaterThan + const DataValidationOperatorGreaterThanOrEqual + const DataValidationOperatorLessThan + const DataValidationOperatorLessThanOrEqual + const DataValidationOperatorNotBetween + const DataValidationOperatorNotEqual + const DataValidationTypeCustom + const DataValidationTypeDate + const DataValidationTypeDecimal + const DataValidationTypeTextLength + const DataValidationTypeTime + const DataValidationTypeWhole + const Doughnut + const EMU + const ExtURIConditionalFormattings + const ExtURIDataValidations + const ExtURIDrawingBlip + const ExtURIIgnoredErrors + const ExtURIMacExcelMX + const ExtURIProtectedRanges + const ExtURISVG + const ExtURISlicerCachesListX14 + const ExtURISlicerListX14 + const ExtURISlicerListX15 + const ExtURISparklineGroups + const ExtURITimelineRefs + const ExtURIWebExtensions + const Line + const Line3D + const MaxCellStyles + const MaxColumnWidth + const MaxColumns + const MaxFieldLength + const MaxFilePathLength + const MaxFontFamilyLength + const MaxFontSize + const MaxRowHeight + const MinColumns + const MinFontSize + const NameSpaceDublinCore + const NameSpaceDublinCoreMetadataInitiative + const NameSpaceDublinCoreTerms + const NameSpaceXML + const NameSpaceXMLSchemaInstance + const Pie + const Pie3D + const PieOfPieChart + const Radar + const STCellFormulaTypeArray + const STCellFormulaTypeDataTable + const STCellFormulaTypeNormal + const STCellFormulaTypeShared + const Scatter + const SourceRelationshipChart + const SourceRelationshipChartsheet + const SourceRelationshipComments + const SourceRelationshipDialogsheet + const SourceRelationshipDrawingML + const SourceRelationshipDrawingVML + const SourceRelationshipHyperLink + const SourceRelationshipImage + const SourceRelationshipOfficeDocument + const SourceRelationshipPivotCache + const SourceRelationshipPivotTable + const SourceRelationshipSharedStrings + const SourceRelationshipTable + const SourceRelationshipVBAProject + const SourceRelationshipWorkSheet + const StreamChunkSize + const StrictNameSpaceSpreadSheet + const StrictSourceRelationship + const StrictSourceRelationshipChart + const StrictSourceRelationshipComments + const StrictSourceRelationshipImage + const StrictSourceRelationshipOfficeDocument + const Surface3D + const TotalCellChars + const TotalRows + const TotalSheetHyperlinks + const UnzipSizeLimit + const WireframeContour + const WireframeSurface3D + var ErrAddVBAProject = errors.New("unsupported VBA project extension") + var ErrAttrValBool = errors.New("unexpected child of attrValBool") + var ErrCellCharsLength = fmt.Errorf("cell value must be 0-%d characters", TotalCellChars) + var ErrColumnNumber = fmt.Errorf(...) + var ErrColumnWidth = fmt.Errorf("the width of the column must be less than or equal to %d characters", ...) + var ErrCoordinates = errors.New("coordinates length must be 4") + var ErrCustomNumFmt = errors.New("custom number format can not be empty") + var ErrDataValidationFormulaLength = fmt.Errorf("data validation must be 0-%d characters", MaxFieldLength) + var ErrDataValidationRange = errors.New("data validation range exceeds limit") + var ErrDefinedNameDuplicate = errors.New("the same name already exists on the scope") + var ErrDefinedNameScope = errors.New("no defined name on the scope") + var ErrExistsWorksheet = errors.New("the same name worksheet already exists") + var ErrFontLength = fmt.Errorf("the length of the font family name must be less than or equal to %d", ...) + var ErrFontSize = fmt.Errorf("font size must be between %d and %d points", MinFontSize, MaxFontSize) + var ErrGroupSheets = errors.New("group worksheet must contain an active worksheet") + var ErrImgExt = errors.New("unsupported image extension") + var ErrInvalidFormula = errors.New("formula not valid") + var ErrMaxFilePathLength = errors.New("file path length exceeds maximum limit") + var ErrMaxRowHeight = fmt.Errorf("the height of the row must be less than or equal to %d points", MaxRowHeight) + var ErrMaxRows = errors.New("row number exceeds maximum limit") + var ErrOptionsUnzipSizeLimit = errors.New(...) + var ErrOutlineLevel = errors.New("invalid outline level") + var ErrParameterInvalid = errors.New("parameter is invalid") + var ErrParameterRequired = errors.New("parameter is required") + var ErrPasswordLengthInvalid = errors.New("password length invalid") + var ErrSave = errors.New("no path defined for file, consider File.WriteTo or File.Write") + var ErrSheetIdx = errors.New("invalid worksheet index") + var ErrSparkline = errors.New("must have the same number of 'Location' and 'Range' parameters") + var ErrSparklineLocation = errors.New("parameter 'Location' is required") + var ErrSparklineRange = errors.New("parameter 'Range' is required") + var ErrSparklineStyle = errors.New("parameter 'Style' must between 0-35") + var ErrSparklineType = errors.New("parameter 'Type' must be 'line', 'column' or 'win_loss'") + var ErrStreamSetColWidth = errors.New("must call the SetColWidth function before the SetRow function") + var ErrStreamSetPanes = errors.New("must call the SetPanes function before the SetRow function") + var ErrTotalSheetHyperlinks = errors.New("over maximum limit hyperlinks in a worksheet") + var ErrUnknownEncryptMechanism = errors.New("unknown encryption mechanism") + var ErrUnprotectSheet = errors.New("worksheet has set no protect") + var ErrUnprotectSheetPassword = errors.New("worksheet protect password not match") + var ErrUnsupportedEncryptMechanism = errors.New("unsupported encryption mechanism") + var ErrUnsupportedHashAlgorithm = errors.New("unsupported hash algorithm") + var ErrUnsupportedNumberFormat = errors.New("unsupported number format token") + var ErrWorkbookFileFormat = errors.New("unsupported workbook file format") + var ErrWorkbookPassword = errors.New("the supplied open workbook password is not correct") + var HSLModel = color.ModelFunc(hslModel) + var IndexedColorMapping = []string + var NameSpaceDocumentPropertiesVariantTypes = xml.Attr + var NameSpaceDrawing2016SVG = xml.Attr + var NameSpaceDrawingML = xml.Attr + var NameSpaceDrawingMLChart = xml.Attr + var NameSpaceDrawingMLSpreadSheet = xml.Attr + var NameSpaceMacExcel2008Main = xml.Attr + var NameSpaceSpreadSheet = xml.Attr + var NameSpaceSpreadSheetExcel2006Main = xml.Attr + var NameSpaceSpreadSheetX14 = xml.Attr + var NameSpaceSpreadSheetX15 = xml.Attr + var SourceRelationship = xml.Attr + var SourceRelationshipChart20070802 = xml.Attr + var SourceRelationshipChart2014 = xml.Attr + var SourceRelationshipChart201506 = xml.Attr + var SourceRelationshipCompatibility = xml.Attr + func CellNameToCoordinates(cell string) (int, int, error) + func ColumnNameToNumber(name string) (int, error) + func ColumnNumberToName(num int) (string, error) + func CoordinatesToCellName(col, row int, abs ...bool) (string, error) + func Decrypt(raw []byte, opts *Options) (packageBuf []byte, err error) + func Encrypt(raw []byte, opts *Options) ([]byte, error) + func ExcelDateToTime(excelDate float64, use1904Format bool) (time.Time, error) + func HSLToRGB(h, s, l float64) (r, g, b uint8) + func JoinCellName(col string, row int) (string, error) + func RGBToHSL(r, g, b uint8) (h, s, l float64) + func SplitCellName(cell string) (string, int, error) + func ThemeColor(baseColor string, tint float64) string + type Alignment struct + Horizontal string + Indent int + JustifyLastLine bool + ReadingOrder uint64 + RelativeIndent int + ShrinkToFit bool + TextRotation int + Vertical string + WrapText bool + type AppProperties struct + AppVersion string + Application string + Company string + DocSecurity int + HyperlinksChanged bool + LinksUpToDate bool + ScaleCrop bool + type ArgType byte + const ArgEmpty + const ArgError + const ArgList + const ArgMatrix + const ArgNumber + const ArgString + const ArgUnknown + type Border struct + Color string + Style int + Type string + type Cell struct + Formula string + StyleID int + Value interface{} + type CellType byte + const CellTypeBool + const CellTypeDate + const CellTypeError + const CellTypeFormula + const CellTypeInlineString + const CellTypeNumber + const CellTypeSharedString + const CellTypeUnset + type ColorMappingType byte + type Cols struct + func (cols *Cols) Error() error + func (cols *Cols) Next() bool + func (cols *Cols) Rows(opts ...Options) ([]string, error) + type Comment struct + Author string + AuthorID int + Cell string + Runs []RichTextRun + Text string + type DataIntegrity struct + EncryptedHmacKey string + EncryptedHmacValue string + type DataValidation struct + AllowBlank bool + Error *string + ErrorStyle *string + ErrorTitle *string + Formula1 string + Formula2 string + Operator string + Prompt *string + PromptTitle *string + ShowDropDown bool + ShowErrorMessage bool + ShowInputMessage bool + Sqref string + Type string + func NewDataValidation(allowBlank bool) *DataValidation + func (dd *DataValidation) SetDropList(keys []string) error + func (dd *DataValidation) SetError(style DataValidationErrorStyle, title, msg string) + func (dd *DataValidation) SetInput(title, msg string) + func (dd *DataValidation) SetRange(f1, f2 interface{}, t DataValidationType, o DataValidationOperator) error + func (dd *DataValidation) SetSqref(sqref string) + func (dd *DataValidation) SetSqrefDropList(sqref string) + type DataValidationErrorStyle int + const DataValidationErrorStyleInformation + const DataValidationErrorStyleStop + const DataValidationErrorStyleWarning + type DataValidationOperator int + type DataValidationType int + type DefinedName struct + Comment string + Name string + RefersTo string + Scope string + type DocProperties struct + Category string + ContentStatus string + Created string + Creator string + Description string + Identifier string + Keywords string + Language string + LastModifiedBy string + Modified string + Revision string + Subject string + Title string + Version string + type EncryptedKey struct + EncryptedKeyValue string + EncryptedVerifierHashInput string + EncryptedVerifierHashValue string + SpinCount int + XMLName xml.Name + type Encryption struct + DataIntegrity DataIntegrity + KeyData KeyData + KeyEncryptors KeyEncryptors + XMLName xml.Name + type ErrSheetNotExist struct + SheetName string + func (err ErrSheetNotExist) Error() string + type File struct + CalcChain *xlsxCalcChain + CharsetReader charsetTranscoderFn + Comments map[string]*xlsxComments + ContentTypes *xlsxTypes + DecodeVMLDrawing map[string]*decodeVmlDrawing + Drawings sync.Map + Path string + Pkg sync.Map + Relationships sync.Map + SharedStrings *xlsxSST + Sheet sync.Map + SheetCount int + Styles *xlsxStyleSheet + Theme *xlsxTheme + VMLDrawing map[string]*vmlDrawing + WorkBook *xlsxWorkbook + func NewFile() *File + func OpenFile(filename string, opts ...Options) (*File, error) + func OpenReader(r io.Reader, opts ...Options) (*File, error) + func (f *File) AddChart(sheet, cell, opts string, combo ...string) error + func (f *File) AddChartSheet(sheet, opts string, combo ...string) error + func (f *File) AddComment(sheet string, comment Comment) error + func (f *File) AddDataValidation(sheet string, dv *DataValidation) error + func (f *File) AddPicture(sheet, cell, picture, format string) error + func (f *File) AddPictureFromBytes(sheet, cell, opts, name, extension string, file []byte) error + func (f *File) AddPivotTable(opts *PivotTableOptions) error + func (f *File) AddShape(sheet, cell, opts string) error + func (f *File) AddSparkline(sheet string, opts *SparklineOptions) error + func (f *File) AddTable(sheet, hCell, vCell, opts string) error + func (f *File) AddVBAProject(bin string) error + func (f *File) AutoFilter(sheet, hCell, vCell, opts string) error + func (f *File) CalcCellValue(sheet, cell string) (result string, err error) + func (f *File) CharsetTranscoder(fn charsetTranscoderFn) *File + func (f *File) Close() error + func (f *File) Cols(sheet string) (*Cols, error) + func (f *File) CopySheet(from, to int) error + func (f *File) DeleteChart(sheet, cell string) error + func (f *File) DeleteComment(sheet, cell string) error + func (f *File) DeleteDataValidation(sheet string, sqref ...string) error + func (f *File) DeleteDefinedName(definedName *DefinedName) error + func (f *File) DeletePicture(sheet, cell string) error + func (f *File) DeleteSheet(sheet string) + func (f *File) DuplicateRow(sheet string, row int) error + func (f *File) DuplicateRowTo(sheet string, row, row2 int) error + func (f *File) GetActiveSheetIndex() (index int) + func (f *File) GetAppProps() (ret *AppProperties, err error) + func (f *File) GetCellFormula(sheet, cell string) (string, error) + func (f *File) GetCellHyperLink(sheet, cell string) (bool, string, error) + func (f *File) GetCellRichText(sheet, cell string) (runs []RichTextRun, err error) + func (f *File) GetCellStyle(sheet, cell string) (int, error) + func (f *File) GetCellType(sheet, cell string) (CellType, error) + func (f *File) GetCellValue(sheet, cell string, opts ...Options) (string, error) + func (f *File) GetColOutlineLevel(sheet, col string) (uint8, error) + func (f *File) GetColStyle(sheet, col string) (int, error) + func (f *File) GetColVisible(sheet, col string) (bool, error) + func (f *File) GetColWidth(sheet, col string) (float64, error) + func (f *File) GetCols(sheet string, opts ...Options) ([][]string, error) + func (f *File) GetComments() (map[string][]Comment, error) + func (f *File) GetConditionalFormats(sheet string) (map[string]string, error) + func (f *File) GetDataValidations(sheet string) ([]*DataValidation, error) + func (f *File) GetDefaultFont() (string, error) + func (f *File) GetDefinedName() []DefinedName + func (f *File) GetDocProps() (ret *DocProperties, err error) + func (f *File) GetMergeCells(sheet string) ([]MergeCell, error) + func (f *File) GetPageLayout(sheet string) (PageLayoutOptions, error) + func (f *File) GetPageMargins(sheet string) (PageLayoutMarginsOptions, error) + func (f *File) GetPicture(sheet, cell string) (string, []byte, error) + func (f *File) GetRowHeight(sheet string, row int) (float64, error) + func (f *File) GetRowOutlineLevel(sheet string, row int) (uint8, error) + func (f *File) GetRowVisible(sheet string, row int) (bool, error) + func (f *File) GetRows(sheet string, opts ...Options) ([][]string, error) + func (f *File) GetSheetIndex(sheet string) int + func (f *File) GetSheetList() (list []string) + func (f *File) GetSheetMap() map[int]string + func (f *File) GetSheetName(index int) (name string) + func (f *File) GetSheetProps(sheet string) (SheetPropsOptions, error) + func (f *File) GetSheetView(sheet string, viewIndex int) (ViewOptions, error) + func (f *File) GetSheetVisible(sheet string) bool + func (f *File) GetWorkbookProps() (WorkbookPropsOptions, error) + func (f *File) GroupSheets(sheets []string) error + func (f *File) InsertCols(sheet, col string, n int) error + func (f *File) InsertPageBreak(sheet, cell string) error + func (f *File) InsertRows(sheet string, row, n int) error + func (f *File) MergeCell(sheet, hCell, vCell string) error + func (f *File) NewConditionalStyle(style string) (int, error) + func (f *File) NewSheet(sheet string) int + func (f *File) NewStreamWriter(sheet string) (*StreamWriter, error) + func (f *File) NewStyle(style interface{}) (int, error) + func (f *File) ProtectSheet(sheet string, settings *SheetProtectionOptions) error + func (f *File) ReadZipReader(r *zip.Reader) (map[string][]byte, int, error) + func (f *File) RemoveCol(sheet, col string) error + func (f *File) RemovePageBreak(sheet, cell string) error + func (f *File) RemoveRow(sheet string, row int) error + func (f *File) Rows(sheet string) (*Rows, error) + func (f *File) Save(opts ...Options) error + func (f *File) SaveAs(name string, opts ...Options) error + func (f *File) SearchSheet(sheet, value string, reg ...bool) ([]string, error) + func (f *File) SetActiveSheet(index int) + func (f *File) SetAppProps(appProperties *AppProperties) error + func (f *File) SetCellBool(sheet, cell string, value bool) error + func (f *File) SetCellDefault(sheet, cell, value string) error + func (f *File) SetCellFloat(sheet, cell string, value float64, precision, bitSize int) error + func (f *File) SetCellFormula(sheet, cell, formula string, opts ...FormulaOpts) error + func (f *File) SetCellHyperLink(sheet, cell, link, linkType string, opts ...HyperlinkOpts) error + func (f *File) SetCellInt(sheet, cell string, value int) error + func (f *File) SetCellRichText(sheet, cell string, runs []RichTextRun) error + func (f *File) SetCellStr(sheet, cell, value string) error + func (f *File) SetCellStyle(sheet, hCell, vCell string, styleID int) error + func (f *File) SetCellValue(sheet, cell string, value interface{}) error + func (f *File) SetColOutlineLevel(sheet, col string, level uint8) error + func (f *File) SetColStyle(sheet, columns string, styleID int) error + func (f *File) SetColVisible(sheet, columns string, visible bool) error + func (f *File) SetColWidth(sheet, startCol, endCol string, width float64) error + func (f *File) SetConditionalFormat(sheet, reference, opts string) error + func (f *File) SetDefaultFont(fontName string) error + func (f *File) SetDefinedName(definedName *DefinedName) error + func (f *File) SetDocProps(docProperties *DocProperties) error + func (f *File) SetHeaderFooter(sheet string, settings *HeaderFooterOptions) error + func (f *File) SetPageLayout(sheet string, opts *PageLayoutOptions) error + func (f *File) SetPageMargins(sheet string, opts *PageLayoutMarginsOptions) error + func (f *File) SetPanes(sheet, panes string) error + func (f *File) SetRowHeight(sheet string, row int, height float64) error + func (f *File) SetRowOutlineLevel(sheet string, row int, level uint8) error + func (f *File) SetRowStyle(sheet string, start, end, styleID int) error + func (f *File) SetRowVisible(sheet string, row int, visible bool) error + func (f *File) SetSheetBackground(sheet, picture string) error + func (f *File) SetSheetCol(sheet, cell string, slice interface{}) error + func (f *File) SetSheetName(source, target string) + func (f *File) SetSheetProps(sheet string, opts *SheetPropsOptions) error + func (f *File) SetSheetRow(sheet, cell string, slice interface{}) error + func (f *File) SetSheetView(sheet string, viewIndex int, opts *ViewOptions) error + func (f *File) SetSheetVisible(sheet string, visible bool) error + func (f *File) SetWorkbookProps(opts *WorkbookPropsOptions) error + func (f *File) UngroupSheets() error + func (f *File) UnmergeCell(sheet, hCell, vCell string) error + func (f *File) UnprotectSheet(sheet string, password ...string) error + func (f *File) UnsetConditionalFormat(sheet, reference string) error + func (f *File) UpdateLinkedValue() error + func (f *File) Write(w io.Writer, opts ...Options) error + func (f *File) WriteTo(w io.Writer, opts ...Options) (int64, error) + func (f *File) WriteToBuffer() (*bytes.Buffer, error) + type Fill struct + Color []string + Pattern int + Shading int + Type string + type Font struct + Bold bool + Color string + ColorIndexed int + ColorTheme *int + ColorTint float64 + Family string + Italic bool + Size float64 + Strike bool + Underline string + VertAlign string + type FormulaOpts struct + Ref *string + Type *string + type HSL struct + H float64 + L float64 + S float64 + func (c HSL) RGBA() (uint32, uint32, uint32, uint32) + type HeaderFooterOptions struct + AlignWithMargins bool + DifferentFirst bool + DifferentOddEven bool + EvenFooter string + EvenHeader string + FirstFooter string + FirstHeader string + OddFooter string + OddHeader string + ScaleWithDoc bool + type HyperlinkOpts struct + Display *string + Tooltip *string + type KeyData struct + BlockSize int + CipherAlgorithm string + CipherChaining string + HashAlgorithm string + HashSize int + KeyBits int + SaltSize int + SaltValue string + type KeyEncryptor struct + EncryptedKey EncryptedKey + URI string + XMLName xml.Name + type KeyEncryptors struct + KeyEncryptor []KeyEncryptor + type MergeCell []string + func (m *MergeCell) GetCellValue() string + func (m *MergeCell) GetEndAxis() string + func (m *MergeCell) GetStartAxis() string + type Options struct + MaxCalcIterations uint + Password string + RawCellValue bool + UnzipSizeLimit int64 + UnzipXMLSizeLimit int64 + type PageLayoutMarginsOptions struct + Bottom *float64 + Footer *float64 + Header *float64 + Horizontally *bool + Left *float64 + Right *float64 + Top *float64 + Vertically *bool + type PageLayoutOptions struct + AdjustTo *uint + BlackAndWhite *bool + FirstPageNumber *uint + FitToHeight *int + FitToWidth *int + Orientation *string + Size *int + type PivotTableField struct + Compact bool + Data string + DefaultSubtotal bool + Name string + Outline bool + Subtotal string + type PivotTableOptions struct + ColGrandTotals bool + Columns []PivotTableField + CompactData bool + Data []PivotTableField + DataRange string + Filter []PivotTableField + MergeItem bool + PageOverThenDown bool + PivotTableRange string + PivotTableStyleName string + RowGrandTotals bool + Rows []PivotTableField + ShowColHeaders bool + ShowColStripes bool + ShowDrill bool + ShowError bool + ShowLastColumn bool + ShowRowHeaders bool + ShowRowStripes bool + UseAutoFormatting bool + type Protection struct + Hidden bool + Locked bool + type RichTextRun struct + Font *Font + Text string + type RowOpts struct + Height float64 + Hidden bool + OutlineLevel int + StyleID int + type Rows struct + func (rows *Rows) Close() error + func (rows *Rows) Columns(opts ...Options) ([]string, error) + func (rows *Rows) Error() error + func (rows *Rows) GetRowOpts() RowOpts + func (rows *Rows) Next() bool + type SheetPropsOptions struct + AutoPageBreaks *bool + BaseColWidth *uint8 + CodeName *string + CustomHeight *bool + DefaultColWidth *float64 + DefaultRowHeight *float64 + EnableFormatConditionsCalculation *bool + FitToPage *bool + OutlineSummaryBelow *bool + OutlineSummaryRight *bool + Published *bool + TabColorIndexed *int + TabColorRGB *string + TabColorTheme *int + TabColorTint *float64 + ThickBottom *bool + ThickTop *bool + ZeroHeight *bool + type SheetProtectionOptions struct + AlgorithmName string + AutoFilter bool + DeleteColumns bool + DeleteRows bool + EditObjects bool + EditScenarios bool + FormatCells bool + FormatColumns bool + FormatRows bool + InsertColumns bool + InsertHyperlinks bool + InsertRows bool + Password string + PivotTables bool + SelectLockedCells bool + SelectUnlockedCells bool + Sort bool + type SparklineOptions struct + Axis bool + CustMax int + CustMin int + DateAxis bool + EmptyCells string + First bool + FirstColor string + Hidden bool + High bool + HightColor string + Last bool + LastColor string + Location []string + Low bool + LowColor string + Markers bool + MarkersColor string + Max int + Min int + Negative bool + NegativeColor string + Range []string + Reverse bool + SeriesColor string + Style int + Type string + Weight float64 + type Stack struct + func NewStack() *Stack + func (stack *Stack) Empty() bool + func (stack *Stack) Len() int + func (stack *Stack) Peek() interface{} + func (stack *Stack) Pop() interface{} + func (stack *Stack) Push(value interface{}) + type StandardEncryptionHeader struct + AlgID uint32 + AlgIDHash uint32 + CspName string + Flags uint32 + KeySize uint32 + ProviderType uint32 + Reserved1 uint32 + Reserved2 uint32 + SizeExtra uint32 + type StandardEncryptionVerifier struct + EncryptedVerifier []byte + EncryptedVerifierHash []byte + Salt []byte + SaltSize uint32 + VerifierHashSize uint32 + type StreamWriter struct + Sheet string + SheetID int + func (sw *StreamWriter) AddTable(hCell, vCell, opts string) error + func (sw *StreamWriter) Flush() error + func (sw *StreamWriter) InsertPageBreak(cell string) error + func (sw *StreamWriter) MergeCell(hCell, vCell string) error + func (sw *StreamWriter) SetColWidth(min, max int, width float64) error + func (sw *StreamWriter) SetPanes(panes string) error + func (sw *StreamWriter) SetRow(cell string, values []interface{}, opts ...RowOpts) error + type Style struct + Alignment *Alignment + Border []Border + CustomNumFmt *string + DecimalPlaces int + Fill Fill + Font *Font + Lang string + NegRed bool + NumFmt int + Protection *Protection + type ViewOptions struct + DefaultGridColor *bool + RightToLeft *bool + ShowFormulas *bool + ShowGridLines *bool + ShowRowColHeaders *bool + ShowRuler *bool + ShowZeros *bool + TopLeftCell *string + View *string + ZoomScale *float64 + type WorkbookPropsOptions struct + CodeName *string + Date1904 *bool + FilterPrivacy *bool Other modules containing this package github.com/Bayzet/excelize