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

make lint happy

This commit is contained in:
源文雨
2023-02-23 15:22:56 +08:00
parent 958a125885
commit b9c9164250
14 changed files with 76 additions and 38 deletions

View File

@@ -76,12 +76,14 @@ func (f *Docx) parseDocRelation(file *zip.File) error {
}
defer zf.Close()
f.DocRelation.Xmlns = XMLNS_R
//TODO: find last rId & imageId
return xml.NewDecoder(zf).Decode(&f.DocRelation)
f.docRelation.Xmlns = XMLNS_R
//TODO: find last rID
return xml.NewDecoder(zf).Decode(&f.docRelation)
}
// parseMedia add the media into Docx struct
func (f *Docx) parseMedia(file *zip.File) error {
//TODO: find last imageID
name := file.Name[len(MEDIA_FOLDER):]
zf, err := file.Open()
if err != nil {