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

feat: Docx implements io.WriterTo

This commit is contained in:
源文雨
2023-02-09 15:22:47 +08:00
parent f995e72acd
commit 56810d8288
5 changed files with 62 additions and 4 deletions

View File

@@ -1,6 +1,9 @@
package docxlib
import "encoding/xml"
import (
"bytes"
"encoding/xml"
)
func newEmptyFile() *Docx {
return &Docx{
@@ -39,5 +42,6 @@ func newEmptyFile() *Docx {
},
},
rId: 3,
buf: bytes.NewBuffer(make([]byte, 0, 1024*1024*4)),
}
}