1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-21 19:13:37 +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

@@ -3,6 +3,7 @@ package docxlib
// This contains internal functions needed to unpack (read) a zip file
import (
"archive/zip"
"bytes"
"encoding/xml"
"io"
)
@@ -27,6 +28,8 @@ func unpack(zipReader *zip.Reader) (docx *Docx, err error) {
}
}
}
//TODO: find last rId
docx.buf = bytes.NewBuffer(make([]byte, 0, 1024*1024*4))
return
}