mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-08 09:10:24 +08:00
feat: chage template name (due2 #17)
This commit is contained in:
4
empty.go
4
empty.go
@@ -24,7 +24,7 @@ import (
|
||||
"encoding/xml"
|
||||
)
|
||||
|
||||
func newEmptyA4File() *Docx {
|
||||
func newEmptyFile() *Docx {
|
||||
docx := &Docx{
|
||||
Document: Document{
|
||||
XMLName: xml.Name{
|
||||
@@ -68,8 +68,6 @@ func newEmptyA4File() *Docx {
|
||||
mediaNameIdx: make(map[string]int, 64),
|
||||
rID: 3,
|
||||
slowIDs: make(map[string]uintptr, 64),
|
||||
template: "a4",
|
||||
tmpfslst: A4TemplateFilesList,
|
||||
}
|
||||
docx.Document.Body.file = docx
|
||||
return docx
|
||||
|
||||
Reference in New Issue
Block a user