1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-12 19:58:36 +08:00

chore: make lint happy

This commit is contained in:
源文雨
2024-09-25 00:29:01 +09:00
parent 753783d2e3
commit 8d5f632f73
3 changed files with 4 additions and 1 deletions

View File

@@ -70,7 +70,8 @@ func (p *Paragraph) AddPageBreaks() *Run {
return run return run
} }
func (p *Paragraph) AddStyle(val string) *Paragraph { // Style name
func (p *Paragraph) Style(val string) *Paragraph {
if p.Properties == nil { if p.Properties == nil {
p.Properties = &ParagraphProperties{} p.Properties = &ParagraphProperties{}
} }

View File

@@ -83,6 +83,7 @@ func (r *Run) Highlight(val string) *Run {
return r return r
} }
// Strike ...
func (r *Run) Strike(val bool) *Run { func (r *Run) Strike(val bool) *Run {
trueFalseStr := "false" trueFalseStr := "false"
if val { if val {

View File

@@ -201,6 +201,7 @@ func (c *WTableCell) Shade(val, color, fill string) *WTableCell {
return c return c
} }
// APITableBorderColors customizable param
type APITableBorderColors struct { type APITableBorderColors struct {
Top string Top string
Left string Left string