1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-11 11:04:54 +08:00

make lint happy

This commit is contained in:
源文雨
2023-03-30 22:13:01 +08:00
parent c95683a4ee
commit f241cc1484
4 changed files with 8 additions and 7 deletions

View File

@@ -27,6 +27,7 @@ import (
"encoding/xml"
"io"
"io/fs"
"os"
"sync"
)
@@ -156,8 +157,8 @@ func (f *Docx) WriteTo(writer io.Writer) (_ int64, err error) {
}
// Read is a fake function and cannot be used
func (f *Docx) Read(p []byte) (n int, err error) {
panic("fake stub!")
func (f *Docx) Read(_ []byte) (int, error) {
return 0, os.ErrInvalid
}
// UseTemplate will replace template files