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

@@ -35,7 +35,7 @@ func main() {
if err != nil {
panic(err)
}
err = w.Write(f)
_, err = w.WriteTo(f)
if err != nil {
panic(err)
}