Versions in this module Expand all Collapse all v1 v1.6.1 Aug 2, 2026 v1.6.0 Aug 2, 2026 Changes in this version + const StyleCodeBlock + const StyleCodeChar + const StyleEmphasis + const StyleHeading1 + const StyleHeading2 + const StyleHeading3 + const StyleHeading4 + const StyleHeading5 + const StyleHeading6 + const StyleHeading7 + const StyleHeading8 + const StyleHeading9 + const StyleListParagraph + const StyleNormal + const StyleQuote + const StyleStrong + const StyleSubtitle + const StyleTitle + func GetPredefinedStyleNames() map[string]string + type BasedOn struct + Val string + XMLName xml.Name + type Bold struct + XMLName xml.Name + type Color struct + Val string + XMLName xml.Name + type FontFamily struct + ASCII string + CS string + EastAsia string + HAnsi string + XMLName xml.Name + type FontSize struct + Val string + XMLName xml.Name + type Highlight struct + Val string + XMLName xml.Name + type Indentation struct + FirstLine string + Left string + Right string + XMLName xml.Name + type Italic struct + XMLName xml.Name + type Justification struct + Val string + XMLName xml.Name + type KeepLines struct + XMLName xml.Name + type KeepNext struct + XMLName xml.Name + type Next struct + Val string + XMLName xml.Name + type OutlineLevel struct + Val string + XMLName xml.Name + type PageBreak struct + XMLName xml.Name + type ParagraphBorder struct + Bottom *ParagraphBorderLine + Left *ParagraphBorderLine + Right *ParagraphBorderLine + Top *ParagraphBorderLine + XMLName xml.Name + type ParagraphBorderLine struct + Color string + Space string + Sz string + Val string + XMLName xml.Name + type ParagraphProperties struct + Indentation *Indentation + Justification *Justification + KeepLines *KeepLines + KeepNext *KeepNext + OutlineLevel *OutlineLevel + PageBreak *PageBreak + ParagraphBorder *ParagraphBorder + Shading *Shading + SnapToGrid *SnapToGrid + Spacing *Spacing + XMLName xml.Name + type QuickParagraphConfig struct + Alignment string + FirstLineIndent int + LeftIndent int + LineSpacing float64 + RightIndent int + SnapToGrid *bool + SpaceAfter int + SpaceBefore int + type QuickRunConfig struct + Bold bool + FontColor string + FontName string + FontSize int + Highlight string + Italic bool + Strike bool + Underline bool + type QuickStyleAPI struct + func NewQuickStyleAPI(styleManager *StyleManager) *QuickStyleAPI + func (api *QuickStyleAPI) CreateQuickStyle(config QuickStyleConfig) (*Style, error) + func (api *QuickStyleAPI) GetAllStylesInfo() []*StyleInfo + func (api *QuickStyleAPI) GetCharacterStylesInfo() []*StyleInfo + func (api *QuickStyleAPI) GetHeadingStylesInfo() []*StyleInfo + func (api *QuickStyleAPI) GetParagraphStylesInfo() []*StyleInfo + func (api *QuickStyleAPI) GetStyleInfo(styleID string) (*StyleInfo, error) + type QuickStyleConfig struct + BasedOn string + ID string + Name string + ParagraphConfig *QuickParagraphConfig + RunConfig *QuickRunConfig + Type StyleType + type RunProperties struct + Bold *Bold + Color *Color + FontFamily *FontFamily + FontSize *FontSize + Highlight *Highlight + Italic *Italic + Strike *Strike + Underline *Underline + XMLName xml.Name + type Shading struct + Fill string + Val string + XMLName xml.Name + type SnapToGrid struct + Val string + XMLName xml.Name + type Spacing struct + After string + Before string + Line string + LineRule string + XMLName xml.Name + type Strike struct + XMLName xml.Name + type Style struct + BasedOn *BasedOn + CustomStyle bool + Default bool + Name *StyleName + Next *Next + ParagraphPr *ParagraphProperties + RunPr *RunProperties + StyleID string + TableCellPr *TableCellProperties + TablePr *TableProperties + TableRowPr *TableRowProperties + Type string + XMLName xml.Name + type StyleApplicator interface + ApplyCodeBlockStyle func() error + ApplyHeadingStyle func(level int) error + ApplyListParagraphStyle func() error + ApplyNormalStyle func() error + ApplyQuoteStyle func() error + ApplyStyle func(styleID string) error + ApplySubtitleStyle func() error + ApplyTitleStyle func() error + type StyleConfig struct + Description string + Name string + StyleID string + StyleType StyleType + func GetPredefinedStyleConfigs() []StyleConfig + type StyleInfo struct + BasedOn string + Description string + ID string + IsBuiltIn bool + Name string + Type StyleType + type StyleManager struct + func NewStyleManager() *StyleManager + func (sm *StyleManager) AddStyle(style *Style) + func (sm *StyleManager) ApplyStyleToXML(styleID string) (map[string]interface{}, error) + func (sm *StyleManager) Clone() *StyleManager + func (sm *StyleManager) CreateCustomStyle(styleID, name string, styleType StyleType, basedOn string) *Style + func (sm *StyleManager) GetAllStyles() []*Style + func (sm *StyleManager) GetHeadingStyles() []*Style + func (sm *StyleManager) GetStyle(styleID string) *Style + func (sm *StyleManager) GetStyleWithInheritance(styleID string) *Style + func (sm *StyleManager) GetStylesByType(styleType StyleType) []*Style + func (sm *StyleManager) LoadStylesFromDocument(xmlData []byte) error + func (sm *StyleManager) MergeStylesFromXML(xmlData []byte) error + func (sm *StyleManager) ParseStylesFromXML(xmlData []byte) error + func (sm *StyleManager) RemoveStyle(styleID string) + func (sm *StyleManager) StyleExists(styleID string) bool + type StyleName struct + Val string + XMLName xml.Name + type StyleType string + const StyleTypeCharacter + const StyleTypeNumbering + const StyleTypeParagraph + const StyleTypeTable + type Styles struct + Styles []Style + XMLName xml.Name + Xmlns string + type TableCellProperties struct + XMLName xml.Name + type TableProperties struct + TblBorders *TblBorders + TblCellMar *TblCellMargin + TblInd *TblIndent + XMLName xml.Name + type TableRowProperties struct + XMLName xml.Name + type TblBorder struct + Color string + Space string + Sz string + Val string + type TblBorders struct + Bottom *TblBorder + InsideH *TblBorder + InsideV *TblBorder + Left *TblBorder + Right *TblBorder + Top *TblBorder + XMLName xml.Name + type TblCellMargin struct + Bottom *TblCellSpace + Left *TblCellSpace + Right *TblCellSpace + Top *TblCellSpace + XMLName xml.Name + type TblCellSpace struct + Type string + W string + type TblIndent struct + Type string + W string + XMLName xml.Name + type Underline struct + Val string + XMLName xml.Name