func (f *File) Save(path string) (err error) {
	fzip, _ := os.Create(path)
	defer fzip.Close()
	zipWriter := zip.NewWriter(fzip)
	defer zipWriter.Close()
	return f.pack(zipWriter)
}
Save save file to path
package docx
import (
	"archive/zip"
	"encoding/xml"
	"io"
	"os"
	"strconv"
)
type File struct {
	Document    Document
	DocRelation DocRelation
	rId int
}
func NewFile() *File {
	defaultRel := []*RelationShip{
		{
			ID:     "rId1",
			Type:   `http: 
			Target: "styles.xml",
		},
		{
			ID:     "rId2",
			Type:   `http: 
			Target: "theme/theme1.xml",
		},
		{
			ID:     "rId3",
			Type:   `http: 
			Target: "fontTable.xml",
		},
	}
	f := &File{
		Document: Document{
			XMLName: xml.Name{
				Space: "w",
			},
			XMLW: XMLNS_W,
			XMLR: XMLNS_R,
			Body: &Body{
				XMLName: xml.Name{
					Space: "w",
				},
				Paragraph: make([]*Paragraph, 0),
			},
		},
		DocRelation: DocRelation{
			Xmlns:        XMLNS,
			Relationship: defaultRel,
		},
		rId: 4,
	}
	return f
}