From 9e8d36ce59381eadb934585a179c4c6d7f871b35 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Sat, 31 Dec 2016 23:47:30 +0800 Subject: - Performance improvement, remove `replaceRelationshipsID` and `workBookCompatibility` functions; - New functions `GetActiveSheetIndex`, `GetSheetName` and `GetSheetMap` added. --- excelize.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'excelize.go') diff --git a/excelize.go b/excelize.go index af076fb..61391dc 100644 --- a/excelize.go +++ b/excelize.go @@ -82,7 +82,7 @@ func (f *File) SetCellInt(sheet string, axis string, value int) { xlsx.SheetData.Row[xAxis].C[yAxis].V = strconv.Itoa(value) output, _ := xml.Marshal(xlsx) - f.saveFileList(name, replaceRelationshipsID(replaceWorkSheetsRelationshipsNameSpace(string(output)))) + f.saveFileList(name, replaceWorkSheetsRelationshipsNameSpace(string(output))) } // SetCellStr provide function to set string type value of a cell. @@ -107,7 +107,7 @@ func (f *File) SetCellStr(sheet string, axis string, value string) { xlsx.SheetData.Row[xAxis].C[yAxis].V = value output, _ := xml.Marshal(xlsx) - f.saveFileList(name, replaceRelationshipsID(replaceWorkSheetsRelationshipsNameSpace(string(output)))) + f.saveFileList(name, replaceWorkSheetsRelationshipsNameSpace(string(output))) } // Completion column element tags of XML in a sheet. @@ -277,6 +277,6 @@ func (f *File) UpdateLinkedValue() { } } output, _ := xml.Marshal(xlsx) - f.saveFileList(name, replaceRelationshipsID(replaceWorkSheetsRelationshipsNameSpace(string(output)))) + f.saveFileList(name, replaceWorkSheetsRelationshipsNameSpace(string(output))) } } -- cgit v1.2.1