diff --git a/.golangci.yml b/.golangci.yml index eae9f90..f340cba 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -25,9 +25,9 @@ linters: - copyloopvar - exhaustive #- funlen - - goconst + #- goconst - gocritic - - gocyclo + #- gocyclo #- gofumpt #- goimports - goprintffuncname diff --git a/cmd/main/main.go b/cmd/main/main.go index ea83c3d..9cc5797 100644 --- a/cmd/main/main.go +++ b/cmd/main/main.go @@ -165,7 +165,7 @@ func main() { if err != nil { panic(err) } - fmt.Println("Document writen. \nNow trying to read it") + fmt.Println("Document written. \nNow trying to read it") } // Now let's try to read the file diff --git a/structdrawing.go b/structdrawing.go index 78e348e..753306e 100644 --- a/structdrawing.go +++ b/structdrawing.go @@ -283,7 +283,7 @@ func (r *WPInline) String() string { return "![inln?](unknown)" } -func (r *WPInline) copymedia(to *Docx) *WPInline { +func (r *WPInline) copymedia(to *Docx) *WPInline { //nolint: dupl if r.Graphic.GraphicData.Pic != nil { if r.Graphic.GraphicData.Pic.BlipFill != nil { tgt, err := r.file.ReferTarget(r.Graphic.GraphicData.Pic.BlipFill.Blip.Embed) @@ -1373,7 +1373,7 @@ func (r *WPAnchor) String() string { return "![anch?](unknown)" } -func (r *WPAnchor) copymedia(to *Docx) *WPAnchor { +func (r *WPAnchor) copymedia(to *Docx) *WPAnchor { //nolint: dupl if r.Graphic.GraphicData.Pic != nil { if r.Graphic.GraphicData.Pic.BlipFill != nil { tgt, err := r.file.ReferTarget(r.Graphic.GraphicData.Pic.BlipFill.Blip.Embed) diff --git a/theme.go b/theme.go index c3f1bb0..3f65f16 100644 --- a/theme.go +++ b/theme.go @@ -32,7 +32,7 @@ func (f *Docx) UseTemplate(template string, tmpfslst []string, tmplfs fs.FS) *Do return f } -// WithDefaultTheme use default theme embeded +// WithDefaultTheme use default theme embedded func (f *Docx) WithDefaultTheme() *Docx { return f.UseTemplate("default", DefaultTemplateFilesList, TemplateXMLFS) }