From 38ad20efc11c1872c4e62a12617f0300c138b867 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 7 May 2018 16:12:51 +0800 Subject: save bytes on memory instead of string --- comment.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'comment.go') diff --git a/comment.go b/comment.go index 6f2d624..41b4d6b 100644 --- a/comment.go +++ b/comment.go @@ -142,7 +142,7 @@ func (f *File) addDrawingVML(commentID int, drawingVML, cell string) { } vml.Shape = append(vml.Shape, shape) v, _ := xml.Marshal(vml) - f.XLSX[drawingVML] = string(v) + f.XLSX[drawingVML] = v } // addComment provides function to create chart as xl/comments%d.xml by given @@ -202,7 +202,7 @@ func (f *File) addComment(commentsXML, cell string, formatSet *formatComment) { } comments.CommentList.Comment = append(comments.CommentList.Comment, cmt) v, _ := xml.Marshal(comments) - f.saveFileList(commentsXML, string(v)) + f.saveFileList(commentsXML, v) } // countComments provides function to get comments files count storage in the -- cgit v1.2.1