mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-09 01:30:25 +08:00
feat: add drawing inline marshal
This commit is contained in:
3
pack.go
3
pack.go
@@ -4,8 +4,6 @@ import (
|
||||
"archive/zip"
|
||||
"encoding/xml"
|
||||
"strings"
|
||||
|
||||
"github.com/golang/glog"
|
||||
)
|
||||
|
||||
// This receives a zip file writer (word documents are a zip with multiple xml inside)
|
||||
@@ -49,7 +47,6 @@ func marshal(data interface{}) (out string, err error) {
|
||||
sb.WriteString(xml.Header)
|
||||
err = xml.NewEncoder(&sb).Encode(data)
|
||||
if err != nil {
|
||||
glog.Errorln("Error marshalling", err)
|
||||
return
|
||||
}
|
||||
out = sb.String()
|
||||
|
||||
Reference in New Issue
Block a user