1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-05 07:40:24 +08:00

普适化 template

This commit is contained in:
源文雨
2023-02-21 13:14:21 +08:00
parent 092b86e7f4
commit 585ee6cda8
13 changed files with 51 additions and 28 deletions

View File

@@ -568,7 +568,7 @@ func TestUnmarshalDrawingStructure(t *testing.T) {
}
func TestMarshalDrawingStructure(t *testing.T) {
w := New()
w := NewA4()
// add new paragraph
para1 := w.AddParagraph()
// add text
@@ -594,7 +594,7 @@ func TestMarshalDrawingStructure(t *testing.T) {
if err != nil {
t.Fatal(err)
}
w = New()
w = NewA4()
err = xml.NewDecoder(f).Decode(&w.Document)
if err != nil {
t.Fatal(err)