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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user